Sorting to SQL query

Couple sorting options now, and changed up date on the list view