Menu

#105 Stable Sorting Order

open
nobody
None
5
2004-06-01
2004-06-01
Anonymous
No

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.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.