How can I sort data from submissions?