marinofaggiana 4 years ago
parent
commit
3289123685
1 changed files with 2 additions and 2 deletions
  1. 2 2
      iOSClient/Main/CCSection.m

+ 2 - 2
iOSClient/Main/CCSection.m

@@ -113,8 +113,8 @@
             if (ascending) return (obj1.size < obj2.size);
             else return (obj1.size > obj2.size);
         } else {
-            if (ascending) return [obj1.fileName compare:obj2.fileName options:NSCaseInsensitiveSearch range:NSMakeRange(0,[obj1.fileName length]) locale:[NSLocale currentLocale]];
-            else return [obj2.fileName compare:obj1.fileName options:NSCaseInsensitiveSearch range:NSMakeRange(0,[obj2.fileName length]) locale:[NSLocale currentLocale]];
+            if (ascending) return [obj1.fileNameView compare:obj2.fileNameView options:NSCaseInsensitiveSearch range:NSMakeRange(0,[obj1.fileNameView length]) locale:[NSLocale currentLocale]];
+            else return [obj2.fileNameView compare:obj1.fileNameView options:NSCaseInsensitiveSearch range:NSMakeRange(0,[obj2.fileNameView length]) locale:[NSLocale currentLocale]];
         }
     }];