The \Yiisoft\Db\Query\Query::orderBy() method specifies the ORDER BY fragment of a SQL query. For example, the following code will generate a query that orders the results by the id column in ...