From f7257f89b18efe8def54efd3ac18e69a3d20caf3 Mon Sep 17 00:00:00 2001 From: Adam Bodnar <1891200+abodnar@users.noreply.github.com> Date: Fri, 8 Sep 2023 14:25:11 -0500 Subject: [PATCH] Remove the keys after sorting --- src/LaravelRequestDocs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LaravelRequestDocs.php b/src/LaravelRequestDocs.php index ae53967..807fbd7 100644 --- a/src/LaravelRequestDocs.php +++ b/src/LaravelRequestDocs.php @@ -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`.