最早一笔未成交平仓单如何查询?

请问,需要查询所有的未成交多头卖出平仓委托单,并且对最早的那一笔平仓委托单进行撤单, 用For j = 0 To GetArraySize(orderIDs) - 1查询的时候,最早那一笔是j==0那一笔还是j==GetArraySize(orderIDs) - 1那一笔?附:以下是全部撤的代码 Integer j=0; Array<Integer> orderIDs; Bool ret=A_GetUnFillOrderIDs(Symbol,orderIDs,onfill_self_source); For j = 0 To GetArraySize(orderIDs) - 1 { Order value; ret=A_getorder(orderids[j],value); if(value.combOffset==Enum_Exit or value.combOffset==Enum_ExitToday and value.side==Enum_Sell) { bool ret1 =A_DeleteOrderEx(orderids[j]); } }

这种情况调试打印输出验证核对时间确认哪个在前print就行了