Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Golf: Arbitrary Alphabetical Sorting

by ChemBoy (Priest)
on May 09, 2001 at 20:42 UTC ( #79151=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    sub o {
    sort {$i=0;
  2. or download this
    sub o {
    sort {$a cmp$b?do{$i=0;{index($q,substr($a,$i,1))<=>index($q,substr($b