diff options
author | Robin Gareus <robin@gareus.org> | 2015-09-16 01:20:27 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-09-16 01:28:55 +0200 |
commit | de53fac3032b87017d83e3f44101eb3edf76888a (patch) | |
tree | 0f06086473edc678f4a1bb2170c4fc79e417f04e /gtk2_ardour/session_dialog.h | |
parent | 50a6487e771f24803d82a1a1c6c3938448b07ae2 (diff) |
pre-sort recent-sessions by modification time - #6575
Diffstat (limited to 'gtk2_ardour/session_dialog.h')
-rw-r--r-- | gtk2_ardour/session_dialog.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/session_dialog.h b/gtk2_ardour/session_dialog.h index ef3717b778..7b79b0bff6 100644 --- a/gtk2_ardour/session_dialog.h +++ b/gtk2_ardour/session_dialog.h @@ -102,9 +102,9 @@ class SessionDialog : public ArdourDialog { void setup_existing_session_page (); - struct RecentSessionsSorter { - bool operator() (std::pair<std::string,std::string> a, std::pair<std::string,std::string> b) const { - return ARDOUR::cmp_nocase(a.first, b.first) == -1; + struct RecentSessionsTimeSorter { + bool operator() (std::pair<int64_t,std::string> a, std::pair<int64_t,std::string> b) const { + return a.first > b.first; } }; |