Skip to content

Commit

Permalink
feat(tags): sort tag categories by name
Browse files Browse the repository at this point in the history
  • Loading branch information
yomatters committed Nov 5, 2024
1 parent 308c265 commit a442135
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ export const useResourceGroups = () => {
tagCategoryIds.push(category.feature_category_id);
}

tagCategories.sort((a, b) => a.name.localeCompare(b.name));

const tags = features
.filter((feature) => tagCategoryIds.includes(feature.feature_category_id))
.map((feature) => ({
Expand Down

0 comments on commit a442135

Please sign in to comment.