filerchooser: Show Recent files in inverse order

When looking at Recent files in the file chooser, it makes more
sense to show the recent files on top.

This commit flips the sort order for that case.
This commit is contained in:
Ray Strode
2023-03-09 15:42:16 -05:00
parent 12858114a2
commit 442fa8d972

View File

@@ -7110,6 +7110,10 @@ recent_sort_func (gconstpointer a,
result = time_sort_func (a, b, user_data);
/* Recent files should show most recently changed items first
*/
result = -result;
if (result == GTK_ORDERING_EQUAL)
result = name_sort_func (a, b, user_data);