Sort plugins alphabetically in new component panel
This commit is contained in:
parent
142c277fab
commit
67c21f7808
|
@ -58,10 +58,14 @@
|
||||||
enrichedStructure.push({
|
enrichedStructure.push({
|
||||||
name: "Plugins",
|
name: "Plugins",
|
||||||
isCategory: true,
|
isCategory: true,
|
||||||
children: customComponents.map(x => ({
|
children: customComponents
|
||||||
...definitions[x],
|
.map(x => ({
|
||||||
name: definitions[x].friendlyName || definitions[x].name,
|
...definitions[x],
|
||||||
})),
|
name: definitions[x].friendlyName || definitions[x].name,
|
||||||
|
}))
|
||||||
|
.sort((a, b) => {
|
||||||
|
return a.name.toLowerCase() < b.name.toLowerCase() ? -1 : 1
|
||||||
|
}),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue