A checkbox and a textbox to specify sorting order
Now a user can specify any custom SQL query, not just a list of columns for sorting.
Finish issue_no4
Merged 'develop'.