private function commandOrderBy($field) { if (is_array($field)) { foreach ($field as $key => $value) { if (is_string($key)) { $this->orderBy($key)->asc($value); } else { $this->orderBy($value); } } } else { $field = $this->parseStatement($field); $this->fluent->orderBy($field); } }
public function modify(Fluent $statement) { $statement->orderBy('[order]', 'ASC'); }