public function orderByUpdatedAt($sort = SORT_ASC)
    {
        /* @var $this ActiveQuery */
        $model = $this->noInitModel;
        if (!is_string($model->updatedAtAttribute) || empty($model->updatedAtAttribute)) {
            return $this;
        }
        return $this->addOrderBy([$model->updatedAtAttribute => $sort]);
    }
public function orderByUpdatedAt($sort = SORT_ASC)
    {
        /* @var $this ActiveQuery */
        $model = $this->noInitModel;
        if (!is_string($model->updatedAtAttribute) || empty($model->updatedAtAttribute)) {
            return $this;
        }
        return $this->addOrderBy([$model->updatedAtAttribute => $sort]);
    }
public function orderByUpdatedAt ( $ sort = SORT_ASC ) { /* @var $this ActiveQuery */ $ model = $ this -> noInitModel ; if ( ! is_string ( $ model -> updatedAtAttribute ) || empty ( $ model -> updatedAtAttribute ) ) { return $ this ; } return $ this -> addOrderBy ( [ $ model -> updatedAtAttribute => $ sort ] ) ; }
Specify order by update time.
@param string $sort only 'SORT_ASC' and 'SORT_DESC' are acceptable.
@return $this
Specify order by update time .