I am using C# and SQL Server 2005. I have a dataset with table numbers like so that I need to have a natural sort on:
1
10
2
I.1
Table 1
Table 2
Table 10
I.10
I.2
Above is my numbers, and I want them to be sorted number first (1,2, ... , 10, 11), then by the alphabet (I.1, I.2, ... ,1.10, I.11, etc.) which would put Table 1, Table 2, ... , Table 10, ... at the end.
Is there any way to do this with some funky SQL?
(Note: I can't use a C# natural sort function as I can't load the entire dataset all at once.)