MQL4 Reference Array Functions ArraySort
ArraySortSorts numeric arrays by first dimension. The AS_SERIES flag is taken into account in sorting.
Parameters array[] [in][out] Numeric array for sorting. count=WHOLE_ARRAY [in] Count of elements to sort. By default, it sorts the whole array. start=0 [in] Starting index to sort. By default, the sort starts at the first element. direction=MODE_ASCEND [in] Sort direction. It can be any of the following values: MODE_ASCEND sort in ascend direction, Return Value The function returns true on success, otherwise - false. Example:
|