How can I find a pointer to my lastest position by using SELECT_BY_POS or something like that ?

 

I don't want to waste too much time on sorting the tickets by their entry dates,

so, can anyone provide a quick fix?

p.s.

some have suggested that

the latest position == OrdersTotal() -1,

is it true?

 
SuperDog:

[...]

some have suggested that

the latest position == OrdersTotal() -1,

is it true?

No guarantees. You don't need to sort, just filter...
 
gordon:
No guarantees. You don't need to sort, just filter...



yeah, thank you, you are right,

a scan is good enough to do the trick.

Reason: