Explorar o código

ordered file list

Daniel Balk %!s(int64=2) %!d(string=hai) anos
pai
achega
35e1f99277
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Moonlight/App/Helpers/Files/FtpFileAccess.cs

+ 1 - 1
Moonlight/App/Helpers/Files/FtpFileAccess.cs

@@ -33,7 +33,7 @@ public class FtpFileAccess : FileAccess
         
         var x = new List<FileData>();
         
-        foreach (FtpListItem item in await Client.GetListing(CurrentPath))
+        foreach (FtpListItem item in (await Client.GetListing(CurrentPath)).OrderBy(x => x.Type + " " + x.Name))
         {
             long size = 0;