Skip to content

Commit f7257f8

Browse files
authored
Remove the keys after sorting
1 parent 73bff56 commit f7257f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LaravelRequestDocs.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function sortDocs(Collection $docs, ?string $sortBy = 'default'): Collect
9595
}
9696

9797
if ($sortBy === 'route_names') {
98-
return $docs->sort();
98+
return $docs->sort()->values();
9999
}
100100

101101
// Sort by `method_names`.

0 commit comments

Comments
 (0)