in reply to Advanced Sorting - GRT - Guttman Rosler Transform
Your example code:
is not quite correct; the "LA*" should be "NA*". The "L" signifies a native 32-bit unsigned integer yet to guarantee sorting correctness on all architectures you must specify "N", network (big-endian) order.my @sorted=map { substr($_,4) } sort map { pack("LA*",tr/eE/eE/,$_) } @words;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Advanced Sorting - GRT - Guttman Rosler Transform
by demerphq (Chancellor) on Aug 25, 2003 at 14:54 UTC |