C# Sort files by natural number ordering in the name?

后端 未结 7 1117
刺人心
刺人心 2020-12-03 18:09

I have files in directory like that

0-0.jpeg
0-1.jpeg
0-5.jpeg
0-9.jpeg
0-10.jpeg
0-12.jpeg

....

when i loading files:



        
7条回答
  •  暖寄归人
    2020-12-03 18:55

    For solving this problem you can use StrCmpLogicalW windows API.

    For more details see This Artice.

提交回复
热议问题