SortByNum

Qubes 6.6 Sorts a list, based on the ascending numerical order of another list.

Syntax

SortByNum(listToSort, listToCompare)
listToSort = list you want to sort
listToCompare = list based on whose values you want to perform sorting

Remarks

Returns listToSort, sorted based on listToCompare.

The sorting rules are the same as for SortNum, dates are allowed and are sorted by chronological order, and strings that do not represent a number have an undetermined sort order.

For an indexed numerical sort, see SortByText.

Examples

SortByNum(List('A', 'B'), List(2, 1)) = { 'B', 'A' }

Classification

Ranges