in reply to Sorting utf-8
You can then compare the values of $characterOrder{$a} with $characterOrder{$b} likt this:my %characterOrder = ( 'a' => 1, 'â' => 1, 'ä' => 1, ... 'b' => 2, 'c' => 3, 'Ç' => 4, ... );
sub GoodSort { $characterOrder{$a} <=> $characterOrder{$b} }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Sorting utf-8
by Anonymous Monk on Apr 24, 2003 at 10:31 UTC |