SortRecordList contains actions for sorting a record list, and removing duplicate elements.
To be used when ListSort and ListDistinct are too limited.
New feature: per-attribute sorting (see documentation). Also standardized parameters to InitCase.