diff --git a/uppsrc/CtrlLib/ArrayCtrl.h b/uppsrc/CtrlLib/ArrayCtrl.h index 36c17e197..179e9c6c3 100644 --- a/uppsrc/CtrlLib/ArrayCtrl.h +++ b/uppsrc/CtrlLib/ArrayCtrl.h @@ -125,6 +125,7 @@ public: Column& Ctrls(Event&> factory); Column& Ctrls(void (*factory)(int, One&)) { return Ctrls(Event&>([=](int a, One& b){ factory(a, b); })); } Column& Sorting(Gate order) { return SortingLined(order); } + Column& Sorting(int (*c)(const Value& a, const Value& b)) { return SortingBy(c); } }; struct Order {