Many databases are sorted by several fields. The sort
command in the menu allows to do this.
However, there is a simple fix to enable secondary sort
orders in the list view, too. The trick is to modify
the comparison function slightly as follows: if two
keys are equal, sort by the record number. Then one can
sort e.g. by 2 keys by first clicking on the secondary
column header and then on the primary column header.
Another issue is that the current sort algorithm
(non-stable) produces non-predicable results on equal
keys - which is a definite no-no from a Human-Computer
Interaction standpoint. A stable sort order (e.g.
create as above) is a _much_ better idea.