The problem is that the below list contains alphanumeric data, and also it has data like 6.1 and 6.10 which is same in terms of integer but not same as a string.
Problem List
6.1
6.10
6.11
6.12
6.2
6.3
6.4 - a
6.4 - b
6.5
6.6
6.7
6.8
6.9
Expected List
6.1
6.2
6.3
6.4 - a
6.4 - b
6.5
6.6
6.7
6.8
6.9
6.10
6.11
6.12
Code
var sortedData = ViolationCodesList.OrderBy(x => x.SubCategory).ToList();
Note : SubCategory is string ..