Skip to content

Commit

Permalink
Remove default order-by from search function
Browse files Browse the repository at this point in the history
  • Loading branch information
danielml01 authored Aug 27, 2024
1 parent 5dc8e3d commit b11d3e8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Http/Controllers/CP/Assets/BrowserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ public function search(Request $request, $container, $path = null)

if ($request->sort) {
$query->orderBy($request->sort, $request->order ?? 'asc');
} else {
$query->orderBy($container->sortField(), $container->sortDirection());
}

$this->applyQueryScopes($query, $request->all());
Expand Down

0 comments on commit b11d3e8

Please sign in to comment.