multivariate sort and multivariate comparison

 

Could someone explain what is the use of the mode in CList.Sort(mode) and CObject.Compare(node, mode)?

 

The mode parameter in the Sort(..) and Compare(..) methods allows changing the algorithms of sorting and comparison during program execution.

See the example attached.
Files:
ListSample.mq5  14 kb
Reason: