Skip to content

Commit 45a4d77

Browse files
committed
fancy order by
1 parent 54c24bf commit 45a4d77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AdjacencyFullTreeDataAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function run()
9898

9999
if (false === $result = Yii::$app->cache->get($cacheKey)) {
100100
$query = $class::find()
101-
->orderBy($this->query_sort_order . ' ASC');
101+
->orderBy([$this->query_sort_order => SORT_ASC]);
102102

103103
if (count($this->whereCondition) > 0) {
104104
$query = $query->where($this->whereCondition);

0 commit comments

Comments
 (0)