Sort modified descending on initial click
This commit is contained in:
parent
93844d3d3f
commit
9af0abeef1
1 changed files with 2 additions and 1 deletions
|
|
@ -1758,7 +1758,8 @@ impl Tab {
|
||||||
let heading_sort = if self.config.sort_name == heading_option {
|
let heading_sort = if self.config.sort_name == heading_option {
|
||||||
!self.config.sort_direction
|
!self.config.sort_direction
|
||||||
} else {
|
} else {
|
||||||
true
|
// Default modified to descending, and others to ascending.
|
||||||
|
heading_option != HeadingOptions::Modified
|
||||||
};
|
};
|
||||||
self.config.sort_direction = heading_sort;
|
self.config.sort_direction = heading_sort;
|
||||||
self.config.sort_name = heading_option;
|
self.config.sort_name = heading_option;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue