Sorting responses: add functions to sort, add dropdown menu