marinofaggiana 4 лет назад
Родитель
Сommit
ea220b781a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      iOSClient/Data/NCDataSource.swift

+ 1 - 1
iOSClient/Data/NCDataSource.swift

@@ -65,7 +65,7 @@ class NCDataSource: NSObject {
         Metadata order
         */
         
-        if sort != "none" {
+        if sort != "none" && sort != "" {
             metadatasSourceSorted = metadatasSource.sorted { (obj1:tableMetadata, obj2:tableMetadata) -> Bool in
                 if sort == "date" {
                     if ascending {