Sort modified descending on initial click

This commit is contained in:
Jason Rodney Hansen 2024-08-14 20:00:10 -06:00
parent 93844d3d3f
commit 9af0abeef1

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;