Sorts list elements in a given order, in-place, from list[1] to list[#list]. Comp is a function that
receives two list elements and returns true when the first element must come before the second in the final order
(so that not comp(list[i+1],list[i]) will be true after the sort).
Sorts list elements in a given order, in-place, from
list[1]
tolist[#list]
. Comp is a function that receives two list elements and returns true when the first element must come before the second in the final order (so thatnot comp(list[i+1],list[i])
will be true after the sort).