diff --git a/net/App_Code/ListFileHandler.cs b/net/App_Code/ListFileHandler.cs index 2cfa22a18..e278e09e2 100644 --- a/net/App_Code/ListFileHandler.cs +++ b/net/App_Code/ListFileHandler.cs @@ -52,9 +52,10 @@ public override void Process() var localPath = Server.MapPath(PathToList); buildingList.AddRange(Directory.GetFiles(localPath, "*", SearchOption.AllDirectories) .Where(x => SearchExtensions.Contains(Path.GetExtension(x).ToLower())) + .Reverse() .Select(x => PathToList + x.Substring(localPath.Length).Replace("\\", "/"))); Total = buildingList.Count; - FileList = buildingList.OrderBy(x => x).Skip(Start).Take(Size).ToArray(); + FileList = buildingList.Skip(Start).Take(Size).ToArray(); } catch (UnauthorizedAccessException) { @@ -103,4 +104,4 @@ private string GetStateString() } return "未知错误"; } -} \ No newline at end of file +}