diff --git a/lib/zin/wg/dtable/v1.php b/lib/zin/wg/dtable/v1.php index 57e1545f91..d6873537d1 100644 --- a/lib/zin/wg/dtable/v1.php +++ b/lib/zin/wg/dtable/v1.php @@ -126,6 +126,13 @@ class dtable extends wg } $this->setProp('footPager', $pager); } + + $orderBy = $this->prop('orderBy'); + if(is_string($orderBy)) + { + list($orderByName, $orderByType) = explode('_', $orderBy); + $this->setProp('orderBy', array($orderByName => $orderByType)); + } } public static function getPageCSS(): string|false