Explorar el Código

ordered file list

Daniel Balk hace 2 años
padre
commit
35e1f99277
Se han modificado 1 ficheros con 1 adiciones y 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;