Skip to content

Roots mrsort() Function

Dan Kranz edited this page Nov 21, 2020 · 6 revisions

Sort list items. group and nextLine keep the new sort sequence.

Rank may also keep the sort sequence. rank(i)=n; where n is the ith member of the sorted list.

Syntax

Roots.mrsort(list, compareFunc, sortColumns, group, nextLine, rank)

Parameter Values

Parameter Description
list The dataset to sort
compareFunc Comparison function
sortColumns Dataset columns to sort by (type Array)
group Working array. It will point to the first line number in the sort after completion of the function.
nextLine Subsequent line numbers array
rank Optional sort representation array
Clone this wiki locally