I have searched around and been unable to find anything on this, maybe I'm not sure how to phrase my question correctly for Google.
I need to sort a list of strings alphabetically, while handling strings that contain more than one letter.
Given the values "A", "AA", "B", "BB", "C", "Z", "CC"
I need the output to be "A", "B", "C", "Z", "AA", "BB", "CC"
I've looked into natural sorting, but that doesn't give me the desired results.
list.OrderBy(s => s.Length).ThenBy(s => s)