110,570
社区成员
发帖
与我相关
我的任务
分享
[System.Runtime.InteropServices.DllImport("Shlwapi.dll", CharSet = System.Runtime.InteropServices.CharSet.Unicode)]
private static extern int StrCmpLogicalW(string psz1, string psz2);
string[] files = new string[] {"1.jpg", "2.jpg", "3.jpg", "10.jpg", "11.jpg", "20.jpg", "30.jpg"};
Array.Sort(files, StrCmpLogicalW);
foreach (var file in files)
{
Console.WriteLine(file);
}