@@ -72,8 +72,7 @@ discard block |
||
| 72 | 72 | $this->field, |
| 73 | 73 | $this->ascends, |
| 74 | 74 | $this->next instanceof ExtensibleSorting ? |
| 75 | - $this->next->andThenAscendingBy($field) : |
|
| 76 | - Sort::ascendingBy($field) |
|
| 75 | + $this->next->andThenAscendingBy($field) : Sort::ascendingBy($field) |
|
| 77 | 76 | ); |
| 78 | 77 | } |
| 79 | 78 | |
@@ -84,8 +83,7 @@ discard block |
||
| 84 | 83 | $this->field, |
| 85 | 84 | $this->ascends, |
| 86 | 85 | $this->next instanceof ExtensibleSorting ? |
| 87 | - $this->next->andThenDescendingBy($field) : |
|
| 88 | - Sort::descendingBy($field) |
|
| 86 | + $this->next->andThenDescendingBy($field) : Sort::descendingBy($field) |
|
| 89 | 87 | ); |
| 90 | 88 | } |
| 91 | 89 | } |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | { |
| 47 | 47 | if (!array_key_exists($sorting->field(), $this->sortableFields)) { |
| 48 | 48 | throw new InvalidArgumentException( |
| 49 | - $sorting->field() . ' is not a sortable field.' |
|
| 49 | + $sorting->field().' is not a sortable field.' |
|
| 50 | 50 | ); |
| 51 | 51 | } |
| 52 | 52 | return sprintf( |