Sorting
To arrange items from minimal to maximal values(or maximal to minimal),
given a disorder list L.
For examples, given L=[5,3,1,2,4,3,8]
and a sort function Sort, the sorted list Lsorted is defined as:
Lsorted=Sort(L)
The results of Lsorted should be:
Lsorted=[1,2,3,3,4,5,8]
or
Lsorted=[8,5,4,3,3,2,1]