Sort
Sorts a list.
void Sort(
int mode // sorting mode
)
Parameters
mode
[in] Sorting mode.
Return Value
No.
Note
The list is always sorted inascending order.
Pierre Rougier: What is the utility of the mode parameter if a list is always sorted in ascending mode?
The mode is passed to each object which determines what is being sorted. Example would be list of orders, do you want it ordered by ticket, or by open time, or by price etc.
whroeder1: The mode is passed to each object which determines what is being sorted. Example would be list of orders, do you want it ordered by ticket, or by open time, or by price etc.
OK, it is up to the developer to choose the use of this parameter.
Hi,
What is the utility of the mode parameter if a list is always sorted in ascending mode?
https://www.mql5.com/en/docs/standardlibrary/datastructures/clist/clistsort