I am loading a listBox full of strings from a string array with a foreach statement. The strings say "Level 1" through "Level 20" and eventually further. It orders them as Level 1, Level 11, Level 12, Level 13, etc, skipping level 2, 3, 4 etc.
How can I order this correctly?
I am about to remove "Level " so it is just the numbers in the array then add them to the listBox with "Level " added. But performance is an issue with this WPF page and this may not be the best performance way.
Thanks.