On Sat, 15 Aug 2009, David Laight wrote: > I'm looking at fixing the 'sort -n' fubars, but this code is an > inpeneterable mess - which needs some fixing first!
Heh. I fixed many sort -n problems some years ago, but the absence of test cases has prevented me from committing. My changes include a comment block explaining the weird and inconsistent encoding scheme. See <ftp://ftp.netbsd.org/pub/NetBSD/misc/apb/sort.20070822.diff>. --apb (Alan Barrett)