Sorts the final spreadsheet by mstudyid