From 90aff8cd483cdd8be2feccba20e96a8a3de7e26c Mon Sep 17 00:00:00 2001 From: 51mono Date: Sat, 13 Feb 2016 01:00:32 +0800 Subject: [PATCH] =?UTF-8?q?.Net=E7=89=88-=E5=A4=9A=E5=9B=BE=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0-=E5=9C=A8=E7=BA=BF=E7=AE=A1=E7=90=86=EF=BC=9A?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=8D=E5=8A=A1=E5=99=A8=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=88=97=E8=A1=A8=E4=B8=8D=E8=83=BD=E5=80=92?= =?UTF-8?q?=E5=BA=8FBug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- net/App_Code/ListFileHandler.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 +}