A helper that sorts the data of a list variable.
listSorter(data, sorter)
data
List. A list variable.
sorter
Numeric vector. An appropriate sorter.
A list of appropriately sorted data