in reply to Golf: Arbitrary Alphabetical Sorting
This will only work on single character 'alphabets', or those that y// can handle as UNICODE.sub o { ($c,*w,$")=@_;sub t{eval"y/\Q@$c\E/\0-\377/";$_}sort{t($_=$a)cmp t$_=$ +b}@w }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 2: Golf: Arbitrary Alphabetical Sorting
by tilly (Archbishop) on May 10, 2001 at 12:02 UTC |