How to sort field data in a spreadsheet