How would I sort a list of files by name to match how Windows Explorer displays them?

Windows Explorer uses an API called:

StrCmpLogicalW

to perform the sort in a “logical” manner.

Someone has also implemented a class in C# which will do this for you.

Leave a Comment