mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-27 16:09:01 +03:00
fix(Menu): order by category then name
This commit is contained in:
1 parent
ce8fcdfa04
commit
1a0ab177db
1 file changed
+1
@@ -24,6 +24,7 @@ export const useToolStore = defineStore('tools', () => {
|
|||||||
|
|
||||||
const toolsByCategory = computed<ToolCategory[]>(() => {
|
const toolsByCategory = computed<ToolCategory[]>(() => {
|
||||||
return _.chain(tools.value)
|
return _.chain(tools.value)
|
||||||
|
.orderBy(['category', 'name'], 'asc')
|
||||||
.groupBy('category')
|
.groupBy('category')
|
||||||
.map((components, name, path) => ({
|
.map((components, name, path) => ({
|
||||||
name,
|
name,
|
||||||
|
|||||||
Reference in new issue
Block a user