Skip to content

Commit

Permalink
Merge pull request #422 from hydephp/fix-grouped-sidebaritems-not-bei…
Browse files Browse the repository at this point in the history
…ng-sorted

Fix bug where categorized documentation sidebar items were not sorted
  • Loading branch information
caendesilva authored May 19, 2022
2 parents 6989bd5 + a783cf6 commit ac00ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/HasDocumentationSidebarCategories.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getItemsInCategory(string $category): DocumentationSidebar
{
return $this->sidebar->filter(function ($item) use ($category) {
return $item->category === Str::slug($category);
});
})->sortBy('priority')->values();
}

protected function assembleCategories(): void
Expand Down

0 comments on commit ac00ba3

Please sign in to comment.