src/records/SortableTrait.php
protected function sortOrderQuery(
        array $sortOrderCondition = [],
        string $sortOrderAttribute = 'sortOrder'
    ): ActiveQuery {
        return static::find()
            ->andWhere($sortOrderCondition)
            ->orderBy([
                $sortOrderAttribute => SORT_ASC,
                'dateUpdated' => SORT_DESC
            ]);
    }
protected function sortOrderQuery(
        array $sortOrderCondition = [],
        string $sortOrderAttribute = 'sortOrder'
    ): ActiveQuery {
        return static::find()
            ->andWhere($sortOrderCondition)
            ->orderBy([
                $sortOrderAttribute => SORT_ASC,
                'dateUpdated' => SORT_DESC
            ]);
    }
protected function sortOrderQuery ( array $ sortOrderCondition = [ ] , string $ sortOrderAttribute = 'sortOrder' ) : ActiveQuery { return static :: find ( ) -> andWhere ( $ sortOrderCondition ) -> orderBy ( [ $ sortOrderAttribute => SORT_ASC , 'dateUpdated' => SORT_DESC ] ) ; }
Creates a sort order query which will display all siblings ordered by their sort order

@param array $sortOrderCondition
@param string $sortOrderAttribute
@return ActiveQuery
Creates a sort order query which will display all siblings ordered by their sort order