in reply to Sorting records on a single field
You may find these helpful:
Sort by specific column schwartzian transform and sorting on two columns How do I sort a file with IP Addresses and another text column? How do I sort on more than one column?
HTH,