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
In reply to Re^4: Sorting multi-dimensional arrays
by RMGir
in thread Sorting multi-dimensional arrays
by cryptic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |