If you have strings like:
"file_0"
"file_1"
"file_2"
"file_3"
"file_4"
"file_5"
"file_6"
"file_11"
how can you sort them so that “file_11” doesn’t come after “file_1”, but comes after “file_6”, since 11 > 6.
Do I have to parse the string and convert it into a number for this?
Windows explorer in Win7 sorts files out the way I wanted.
You could import the StrCmpLogicalW function and use that to sort the strings. This is the very same function that Explorer itself uses for file names.
Won’t help you if you don’t want P/Invoke or stay compatible on other systems, though.