pre-sort recent-sessions by modification time - #6575

This commit is contained in:
Robin Gareus 2015-09-16 01:20:27 +02:00
parent 50a6487e77
commit de53fac303
2 changed files with 26 additions and 7 deletions

View file

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