windows文件名格式的中文+数字混合字符串排序
记录一下
[DllImport("shlwapi.dll", CharSet = CharSet.Unicode)] private static extern int StrCmpLogicalW(string psz1, string psz2); static void Main(string[] args) { var array = new string[] { "商5","商9","商10","商11","商12","商13","商1","商2","商3","201","教1","商4","商14","商6","商7","商8","商15","门卫" }; Array.Sort(array, StrCmpLogicalW); }