Merge pull request #382 from jasonrhansen/modified-sort

Sort modified descending on initial click
This commit is contained in:
Jeremy Soller 2024-08-15 07:53:19 -06:00 committed by GitHub
commit 96d6ee9e6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;