marinofaggiana 3 年之前
父节点
当前提交
67a162bbbb
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      iOSClient/Menu/NCSortMenu.swift

+ 4 - 4
iOSClient/Menu/NCSortMenu.swift

@@ -69,11 +69,11 @@ class NCSortMenu: NSObject {
         )
 
         if layoutForView.ascending {
-            title = NSLocalizedString("_order_by_date_less_recent_", comment: "")
-            icon = UIImage(named: "sortDateLessRecent")!.image(color: NCBrandColor.shared.gray, size: 50)
-        } else {
             title = NSLocalizedString("_order_by_date_more_recent_", comment: "")
             icon = UIImage(named: "sortDateMoreRecent")!.image(color: NCBrandColor.shared.gray, size: 50)
+        } else {
+            title = NSLocalizedString("_order_by_date_less_recent_", comment: "")
+            icon = UIImage(named: "sortDateLessRecent")!.image(color: NCBrandColor.shared.gray, size: 50)
         }
         
         actions.append(
@@ -146,7 +146,7 @@ class NCSortMenu: NSObject {
         case "fileName":
             layoutForView.titleButtonHeader = layoutForView.ascending ? "_sorted_by_name_a_z_" : "_sorted_by_name_z_a_"
         case "date":
-            layoutForView.titleButtonHeader = layoutForView.ascending ? "_sorted_by_date_more_recent_" : "_sorted_by_date_less_recent_"
+            layoutForView.titleButtonHeader = layoutForView.ascending ? "_sorted_by_date_less_recent_" : "_sorted_by_date_more_recent_"
         case "size":
             layoutForView.titleButtonHeader = layoutForView.ascending ? "_sorted_by_size_smallest_" : "_sorted_by_size_largest_"
         default: