windows文件名格式的中文+数字混合字符串排序

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);
        }

  

 

windows文件名格式的中文+数字混合字符串排序_第1张图片

 

posted on 2018-12-25 15:11 Anders' Yan 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/yansc/p/10174070.html

你可能感兴趣的:(windows文件名格式的中文+数字混合字符串排序)