I am getting back results from a LINQ query. The results are gathered from an object with its own members and public properties which in turn gets its data from the DB. This result is loaded into a combobox I create in code and is attached to a datagridview.
The issue is that it is a combination of integers and strings, such as the following:
1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14, 15+, not answered.
The problem is, that with this combination it is sorted as a list of strings. Like this:
1, 10, 11, 12, 13, 14, 15+, 2, 3, 4, 5, 6, 7, 8, 9, not answered.
Is there any way to sort the list so that the integers come first and then the strings, such as the top list indicates?