in reply to Re^3: Sorting multi-dimensional arrays
in thread Sorting multi-dimensional arrays
However, why are you so sure that lexicographic sorting would be wrong? It's quite possible that CC100A _does_ go after CC1000, in his system... (Well, ok, CCI10A vs CCI100, to follow his format more closely).
The sort order is under-specified, but it appears from his one example that cmp would be satisfactory... I admit that a 4 item example is a bit slim :)
--
Mike
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Sorting multi-dimensional arrays
by Aristotle (Chancellor) on Sep 11, 2002 at 18:39 UTC | |
by sauoq (Abbot) on Sep 11, 2002 at 19:17 UTC | |
by Aristotle (Chancellor) on Sep 11, 2002 at 19:29 UTC |