public function beforeFind(Event $event, Query $query, ArrayObject $options)
    {
        if (!$query->clause('order')) {
            $query->order([$this->_table->aliasField($this->_config['order']) => 'ASC']);
        }
    }
public function beforeFind(Event $event, Query $query, ArrayObject $options)
    {
        if (!$query->clause('order')) {
            $query->order([$this->_table->aliasField($this->_config['order']) => 'ASC']);
        }
    }
public function beforeFind ( Event $ event , Query $ query , ArrayObject $ options ) { if ( ! $ query -> clause ( 'order' ) ) { $ query -> order ( [ $ this -> _table -> aliasField ( $ this -> _config [ 'order' ] ) => 'ASC' ] ) ; } }
Adds order value if not already set in query.

@param \Cake\Event\Event $event The beforeFind event that was fired.
@param \Cake\ORM\Query $query The query object.
@param \ArrayObject $options The options passed to the find method.

@return void
Adds order value if not already set in query .