marinofaggiana hace 3 años
padre
commit
4aaf79e6c0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      iOSClient/Data/NCManageDatabase.swift

+ 1 - 1
iOSClient/Data/NCManageDatabase.swift

@@ -1006,7 +1006,7 @@ class NCManageDatabase: NSObject {
         let realm = try! Realm()
         var filesNames: [String] = []
 
-        let results = realm.objects(tableChunk.self).filter("account == %@ AND ocId == %@", account, ocId).sorted(byKeyPath: "fileName", ascending: false)
+        let results = realm.objects(tableChunk.self).filter("account == %@ AND ocId == %@", account, ocId).sorted(byKeyPath: "fileName", ascending: true)
         for result in results {
             filesNames.append(result.fileName)
         }