Implement list sorting.
Update reference manual.