Example #1
0
 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);
     }
 }
Example #2
0
 public function modify(Fluent $statement)
 {
     $statement->orderBy('[order]', 'ASC');
 }