Ramachandran
New Member
- Joined
- Oct 17, 2011
- Messages
- 47
I wish to sort an array of strings alphabetically including the nordic characters Æ, Ø, Å.
Nordic alphabet = "abcdefghijklmnopqrstuvwxyzæøå"
Most sorting algorithms I've come across (bubble, quick, merge) sorts by checking if "bb" > "ba".
which works well for "01...89abc..xyz"
However, "æ" > "å" and "ø" > "å"
which gives me the sorting, abc...xyzåæø.
Any tips on how to get around this? to get an efficient sorting algo that puts "bø" ahead of "bå" ?
Nordic alphabet = "abcdefghijklmnopqrstuvwxyzæøå"
Most sorting algorithms I've come across (bubble, quick, merge) sorts by checking if "bb" > "ba".
which works well for "01...89abc..xyz"
However, "æ" > "å" and "ø" > "å"
which gives me the sorting, abc...xyzåæø.
Any tips on how to get around this? to get an efficient sorting algo that puts "bø" ahead of "bå" ?