Sorting

To arrange items from minimal to maximal values(or maximal to minimal), given a disorder list LL.

For examples, given L=[5,3,1,2,4,3,8]L = [ 5, 3, 1, 2, 4, 3, 8 ] and a sort function SortSort, the sorted list LsortedL_{sorted} is defined as:

Lsorted=Sort(L) L_{sorted} = Sort(L)

The results of LsortedL_{sorted} should be: Lsorted=[1,2,3,3,4,5,8] L_{sorted} = [ 1, 2, 3, 3, 4, 5, 8 ] or Lsorted=[8,5,4,3,3,2,1] L_{sorted} = [ 8, 5, 4, 3, 3, 2, 1 ]

results matching ""

    No results matching ""