marinofaggiana 4 ani în urmă
părinte
comite
ea220b781a
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      iOSClient/Data/NCDataSource.swift

+ 1 - 1
iOSClient/Data/NCDataSource.swift

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