yiisoft/yii2 — pull request #1236 by iJackUA (2013-11-19 10:38:37+00:00)
Title: fix sort constants for correct sorting SQL generation

as QueryTrait expect now
```SORT_ASC, SORT_DESC```
instead
```Query::SORT_ASC, Query::SORT_DESC```

but Sort class was still using "own" sort constans and SQL was generated without ASC / DESC operators

Maybe QueryTrait code comments should be also changed from
> (e.g. `['id' => SORT_ASC, 'name' => SORT_DESC]`).

to
> (e.g. `['id' => Sort::ASC, 'name' => Sort::DESC]`).

to use consistent constant naming all over framework ?