Is there a way in .NET / C # to sort List<string> according to custom alphabetical order?
I have a list of words:
{ "badum", "śiram", "ðaur", "hor", "áltar", "aun" }
which I want to sort in the following order:
{ "áltar", "aun", "badum", "śiram", "hor", "ðaur" }
By arbitrary alphabetical order, I mean that I am working on a constructed language with an alphabet that looks like this: ABZTMIGJLNKSOŚPRFUHDVEÐÞY. The C # RuleBasedCollator found in Java would be perfect! If such a thing does not exist, several pointers to writing a custom algorithm will be evaluated.
Thanks in advance.
c # collation
Minustar
source share