ARRAY SORT indexes
Stanislav Ivanov:
Why don't you try? Hi Guys,
I have a question, and I cant quite find the answer. When I sort an array,for example ascending, do indexes keep or they rearrange?
Thank you in advance !
Array is a data structure that stores a group of elements where each element is accessed directly by its index.
For fast access, the array is stored as a series in the memory, and so the index of each element is translated to its memory address:
Arr[i]=addr(Arr[0]+i*Len(Arr[0]) -
Sort changes the order of the elements in the memory.
And out of interest how can it be done in mql4
Thank you
Hi Guys,
I have a question, and I cant quite find the answer. When I sort an array,for example ascending, do indexes keep or they rearrange?
Thank you in advance !