From 9af0abeef1cb82f3569d12e648c2798f9a8f0bd9 Mon Sep 17 00:00:00 2001 From: Jason Rodney Hansen Date: Wed, 14 Aug 2024 20:00:10 -0600 Subject: [PATCH] Sort modified descending on initial click --- src/tab.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tab.rs b/src/tab.rs index f80056c..feb3335 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -1758,7 +1758,8 @@ impl Tab { let heading_sort = if self.config.sort_name == heading_option { !self.config.sort_direction } else { - true + // Default modified to descending, and others to ascending. + heading_option != HeadingOptions::Modified }; self.config.sort_direction = heading_sort; self.config.sort_name = heading_option;