diff --git a/gtk2_ardour/plugin_pin_dialog.cc b/gtk2_ardour/plugin_pin_dialog.cc index d9591732bd..6493dbb7c8 100644 --- a/gtk2_ardour/plugin_pin_dialog.cc +++ b/gtk2_ardour/plugin_pin_dialog.cc @@ -1740,12 +1740,6 @@ PluginPinWidget::sc_input_release (GdkEventButton *ev) return false; } -struct RouteCompareByName { - bool operator() (boost::shared_ptr a, boost::shared_ptr b) { - return a->name ().compare (b->name ()) < 0; - } -}; - bool PluginPinWidget::sc_input_press (GdkEventButton *ev, boost::weak_ptr wp) { @@ -1776,7 +1770,7 @@ PluginPinWidget::sc_input_press (GdkEventButton *ev, boost::weak_ptr routes = _session->get_routes (); RouteList copy = *routes; - copy.sort (RouteCompareByName ()); + copy.sort (Stripable::Sorter(true)); uint32_t added = 0; for (ARDOUR::RouteList::const_iterator i = copy.begin (); i != copy.end (); ++i) { added += maybe_add_route_to_input_menu (*i, p->type (), wp);