소스 검색

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 3 년 전
부모
커밋
9326f5385b
1개의 변경된 파일9개의 추가작업 그리고 5개의 파일을 삭제
  1. 9 5
      iOSClient/Data/NCDataSource.swift

+ 9 - 5
iOSClient/Data/NCDataSource.swift

@@ -75,11 +75,15 @@ class NCDataSource: NSObject {
 
         self.sectionsValue = metadatasSource.map { getSectionValue(metadata: $0) }
         self.sectionsValue = Array(Set(self.sectionsValue))
-        self.sectionsValue = self.sectionsValue.sorted {
-            if self.ascending {
-                return $0 < $1
-            } else {
-                return $0 > $1
+        if let providers = self.providers {
+
+        } else {
+            self.sectionsValue = self.sectionsValue.sorted {
+                if self.ascending {
+                    return $0 < $1
+                } else {
+                    return $0 > $1
+                }
             }
         }
     }