in reply to Re: Inconsistent column Schwartzian Transform attempt
in thread Inconsistent column Schwartzian Transform attempt
That way, the fields will "cmp" correctly.
If you need keys sorted in a different order, just sprintf them differently. For descending numeric keys, sprintf 9999999-$fld. For descending string keys... Hmmm, don't have an easy answer to that one. Of course, as long as you don't need some string keys desc and others asc, you can just reverse the order of the cmp call in the sort block.
Hope this helps!
--
Mike
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: And lexicographically means...
by Juerd (Abbot) on Mar 16, 2002 at 18:17 UTC | |
by RMGir (Prior) on Mar 16, 2002 at 19:41 UTC | |
|
Re: And lexicographically means...
by I0 (Priest) on Mar 16, 2002 at 18:46 UTC |