@@ -3,7 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | use Illuminate\Database\Eloquent\Builder; |
| 5 | 5 | use Event; |
| 6 | -use Illuminate\Foundation\Application; |
|
| 7 | 6 | use Illuminate\Support\Collection; |
| 8 | 7 | |
| 9 | 8 | class CollectionDataProvider extends DataProvider |
@@ -108,8 +108,7 @@ |
||
| 108 | 108 | { |
| 109 | 109 | if($direction === Grid::SORT_ASC){ |
| 110 | 110 | $this->src->sortBy($fieldName); |
| 111 | - } |
|
| 112 | - else{ |
|
| 111 | + } else{ |
|
| 113 | 112 | $this->src->sortByDesc($fieldName); |
| 114 | 113 | } |
| 115 | 114 | |