<分区>
Possible Duplicate:
Natural Sort Order in C#
如何按照 Windows 资源管理器中显示的顺序从目录中读取文件?
例如windows资源管理器列表:
file 1.txt
file 2.txt
file 3.txt
file 4.txt
file 5.txt
file 6.txt
file 7.txt
file 8.txt
file 9.txt
file 10.txt
file 11.txt
file 12.txt
当 Directory.GetFiles() 列出时:
file 1.txt
file 10.txt
file 11.txt
file 12.txt
file 2.txt
file 3.txt
file 4.txt
file 5.txt
file 6.txt
file 7.txt
file 8.txt
file 9.txt
[编辑]
在这里你可以找到另一个解决方案:http://www.codeproject.com/KB/recipes/csnsort.aspx?msg=3342284