Commit dd97c002 by Qiang Xue

fixed test break.

parent 0833fe2e
......@@ -355,7 +355,7 @@ class Sort extends Object
$definition = $this->attributes[$attribute];
$directions = $this->getAttributeOrders();
if (isset($directions[$attribute])) {
$descending = $directions[$attribute] === SORT_DESC;
$descending = $directions[$attribute] !== SORT_DESC;
unset($directions[$attribute]);
} else {
$descending = isset($definition['default']) && $definition['default'] === SORT_DESC;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment