From f05fc4bdc3a74730e04f3f42485b14907e0fd7d9 Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 25 Oct 2017 13:16:03 +0000 Subject: [PATCH] CtrlLib: Fixed backward compatibility of ArrayCtrl::Column::Sorting git-svn-id: svn://ultimatepp.org/upp/trunk@11414 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlLib/ArrayCtrl.h | 1 + 1 file changed, 1 insertion(+) 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 {