NEW: Introduced helper class "SortControl", for managing data that can be used in sort drop downs, and produce appropriate SQL.