织梦dedecms系统的后台文件默认的排序很乱, 不是按名称, 也不是按时间。
如果目录内容很多的话, 管理不是很方便。
于是想让这些文件列表按名字排序, 看了一下后台的文件, 原来是因为php的函数dir引起的, 以【默认模板管理】在文件列表为例, 在后台的找到模板文件: /dede/templets/templets_default.htm (dede为你的后台目录), 打开这个文件找到:
<?php
$dh = dir($templetdird);
while($filename=$dh->read())
{
if(!preg_match("#\.htm#", $filename)) continue;
$filetime =&nb...