Is there a way in .NET/C# to sort a List according to a custom alphabetical order?
List
I have a list of words:
{ \"badum\", \"
You can pass custom sorter to the List.Sort() method:
List foo = new List(); foo.Sort((a, b) => a.CompareTo(b));
This will sort the list in place depending on which criteria you want to use (above obviously does just a regular string comparison).