projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59c856c
)
Sort route-templates by name
author
Robin Gareus
<robin@gareus.org>
Fri, 22 Feb 2019 21:33:01 +0000
(22:33 +0100)
committer
Robin Gareus
<robin@gareus.org>
Fri, 22 Feb 2019 21:33:01 +0000
(22:33 +0100)
libs/ardour/template_utils.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/template_utils.cc
b/libs/ardour/template_utils.cc
index 4b8d5b2b7816b12f2e0f75ad11045ef1a9e3abc1..d92dc32f521bdcd58f1d72514f4601aef9666795 100644
(file)
--- a/
libs/ardour/template_utils.cc
+++ b/
libs/ardour/template_utils.cc
@@
-134,6
+134,12
@@
find_session_templates (vector<TemplateInfo>& template_names, bool read_xml)
std::sort(template_names.begin(), template_names.end());
}
+struct TemplateInfoSorter {
+ bool operator () (TemplateInfo const& a, TemplateInfo const& b) {
+ return a.name < b.name;
+ }
+};
+
void
find_route_templates (vector<TemplateInfo>& template_names)
{
@@
-182,6
+188,8
@@
find_route_templates (vector<TemplateInfo>& template_names)
template_names.push_back (rti);
}
+
+ std::sort (template_names.begin(), template_names.end (), TemplateInfoSorter ());
}
}