in reply to Alpha number sort
I seems to me the preferred sort order in your example is different from what you describe in the text, and both text and example appear somewhat inconsistent.
For example, you say you want linux releases in release order, yet you put linux-2.4.3 after linux-2.4.28. Same thing with 2.10.6 vs 2.10.50
The core inconsistency seems to be this part of your request: "x.10 should come after x.9, but x.55 should come before x.6".
Perhaps (since this seems to be about comparing release versions of software packages) you need to find a way to use a different compare function for different packages, and the n either use a lookup table or a heuristic to figure out which one to use.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Alpha number sort
by gam3 (Curate) on Mar 25, 2005 at 23:47 UTC | |
by tye (Sage) on Mar 26, 2005 at 00:01 UTC | |
by gam3 (Curate) on Mar 27, 2005 at 20:05 UTC |