Sorting result lists is a common enough thing in applications that we should have a recommended way of doing it already implemented.
We should implement sorting in the people list and users list blocks.
Sort options will need to be passed along in the URL, so we need to take care to validate the sorting the user is requesting. If the user requests some sorting that is not valid, we should fall back to the default sorting.