1
0
Fork 0
mirror of synced 2024-10-03 10:36:59 +13:00

Fix case sensitive screen alphabetical sorting

This commit is contained in:
Andrew Kingston 2020-11-09 08:43:36 +00:00
parent b2738f3177
commit 9af8b04c99

View file

@ -10,10 +10,12 @@
export let screens = [] export let screens = []
$: sortedScreens = screens.sort((s1, s2) => $: sortedScreens = screens.sort((s1, s2) => {
s1.props._instanceName > s2.props._instanceName ? 1 : -1 const name1 = s1.props._instanceName?.toLowerCase() ?? ""
) const name2 = s2.props._instanceName?.toLowerCase() ?? ""
/* return name1 > name2 ? 1 : -1
})
/*
Using a store here seems odd.... Using a store here seems odd....
have a look in the <ComponentsHierarchyChildren /> code file to find out why. have a look in the <ComponentsHierarchyChildren /> code file to find out why.
I have commented the dragDropStore parameter I have commented the dragDropStore parameter