Ver Fonte

fix

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana há 3 anos atrás
pai
commit
c2506adc30
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      iOSClient/Data/NCDataSource.swift

+ 3 - 0
iOSClient/Data/NCDataSource.swift

@@ -97,6 +97,9 @@ class NCDataSource: NSObject {
             }
         } else {
             self.sectionsValue = self.sectionsValue.sorted {
+                if directoryOnTop && $0.lowercased() == "directory" {
+                    return true
+                }
                 if self.ascending {
                     return $0 < $1
                 } else {