sortbib
[option] filesSort one or more bibliographic databases. Typically used for printing with roffbib. Up to 16 databases may be sorted. Records may not exceed 4096 bytes in length.
-s
keysSort on the given keys. The first four keys influence the sort; the rest are ignored. Letters in keys correspond to the key letters in bibliography entries. Append a +
to a letter to sort completely by that key before moving to the next.
Sort by authors first, then by date:
sortbib -sA+D myrefs |
...
Sort by author, title, and date:
sortbib -sATD myrefs |
...