diff --git a/lib/zin/wg/dtable/v1.php b/lib/zin/wg/dtable/v1.php index 7c6014b292..7cf8139fab 100644 --- a/lib/zin/wg/dtable/v1.php +++ b/lib/zin/wg/dtable/v1.php @@ -130,7 +130,7 @@ class dtable extends wg $orderBy = $this->prop('orderBy'); if(is_string($orderBy)) { - list($orderByName, $orderByType) = explode('_', $orderBy); + list($orderByName, $orderByType) = explode('_', strpos($orderBy, '_') === false ? $orderBy . '_desc' : $orderBy); $this->setProp('orderBy', array($orderByName => $orderByType)); }