I have some custom filenames I need to sort based on information in the filename itself.
I know there has to be an easier way than I have come up with (a for loop which goes through and manually splits the strings to identify the various filename info) using SortDescriptions but I can't figure them out.
The filename format is:
OurApp_versionNum_DEBUG_build_number.exe
e.g.
Notepad_1.0_DEBUG_build_1.exe
I want to sort the items with the highest build number at the top of the list box so e.g.
Notepad_1.0_DEBUG_build_10.exe
Notepad_1.0_DEBUG_build_7.exe
Notepad_1.0_DEBUG_build_1.exe
I know there must be a simpler way than what I've come up with. Any help is appreciated.
I am using .NET 4.0.
Thank you
m