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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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