Fix multi-channel delaylines #7409 part 2/2
[ardour.git] / libs / ardour / ardour / stripable.h
index b657ac6161b19c67e822fbc57d1d51972c06124f..3bc2cc33571721874d3834973dc52ae94584b5eb 100644 (file)
@@ -87,10 +87,11 @@ class LIBARDOUR_API Stripable : public SessionObject,
 
        void  set_presentation_order (PresentationInfo::order_t);
 
-       struct PresentationOrderSorter {
-               bool operator() (boost::shared_ptr<Stripable> a, boost::shared_ptr<Stripable> b) {
-                       return a->presentation_info().order() < b->presentation_info().order();
-               }
+       struct LIBARDOUR_API Sorter
+       {
+               bool _mixer_order; // master is last
+               Sorter (bool mixer_order = false) : _mixer_order (mixer_order) {}
+               bool operator() (boost::shared_ptr<ARDOUR::Stripable> a, boost::shared_ptr<ARDOUR::Stripable> b);
        };
 
        /* gui's call this for their own purposes. */