mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
pre-sort recent-sessions by modification time - #6575
This commit is contained in:
parent
50a6487e77
commit
de53fac303
2 changed files with 26 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue