From 90d3fa05878c0709f5dc3ce70613ead94b03f0f5 Mon Sep 17 00:00:00 2001 From: Ari Date: Fri, 27 May 2022 13:01:50 -0400 Subject: [PATCH] sorting tag names --- webapp/src/components/AutomationList/TagDB.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/components/AutomationList/TagDB.ts b/webapp/src/components/AutomationList/TagDB.ts index 64addda..ed9fac3 100644 --- a/webapp/src/components/AutomationList/TagDB.ts +++ b/webapp/src/components/AutomationList/TagDB.ts @@ -15,7 +15,7 @@ export const makeTagDB = (automations: AutomationData[]) => { const allTagNames = Object.keys(allTags); return { getTagNames(myTags: string[]): string[] { - return allTagNames.filter(n => !myTags.includes(n)) + return allTagNames.filter(n => !myTags.includes(n)).sort() }, getTagValues(tagName: string): string[] { return allTags[tagName] ? Array.from(allTags[tagName].values()).sort() : [];