Fix for issue 1378 Sorting of Marks Spreadsheet

Fixed the sorting of First, last, and user names in the spreadsheet by adding an if else condition on "desc" field in the http get request. Also fixed an isolated issue with sorting by the sections. We changed from an inner join to left outer join since sections could be null.