1
0
Fork 0
mirror of synced 2024-09-30 00:57:16 +13:00

Fix alphabetical sorting of screens

This commit is contained in:
Andrew Kingston 2020-11-09 08:32:44 +00:00
parent 4c77b9ceef
commit d248060d30

View file

@ -10,8 +10,8 @@
export let screens = []
$: sortedScreens = screens.sort(
(s1, s2) => s1.props._instanceName > s2.props._instanceName
$: sortedScreens = screens.sort((s1, s2) =>
s1.props._instanceName > s2.props._instanceName ? 1 : -1
)
/*
Using a store here seems odd....