Skip to content

Commit

Permalink
Merge pull request #284 from abodnar/fix-default-group-when-sort-by-r…
Browse files Browse the repository at this point in the history
…oute-name

Remove the keys after sorting
  • Loading branch information
kevincobain2000 authored Sep 11, 2023
2 parents 73bff56 + f7257f8 commit 4f47d1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelRequestDocs.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function sortDocs(Collection $docs, ?string $sortBy = 'default'): Collect
}

if ($sortBy === 'route_names') {
return $docs->sort();
return $docs->sort()->values();
}

// Sort by `method_names`.
Expand Down

0 comments on commit 4f47d1d

Please sign in to comment.