Commit d4c8f47c by Qiang Xue

Fixes #753: fixed sorting issue of ActiveDataProvider

parent 5f4b59d0
......@@ -153,7 +153,7 @@ class ActiveDataProvider extends DataProvider
$this->query->limit($pagination->getLimit())->offset($pagination->getOffset());
}
if (($sort = $this->getSort()) !== false) {
$this->query->orderBy($sort->getOrders());
$this->query->addOrderBy($sort->getOrders());
}
$this->_models = $this->query->all($this->db);
}
......
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