From dd478255f6238b526557b9e109fd321df5014f92 Mon Sep 17 00:00:00 2001 From: finned-palmer Date: Tue, 8 Jun 2021 08:52:22 -0500 Subject: [PATCH] Fix dm alphabetical sort issue --- .../src/views/landscape/components/Sidebar/SidebarList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/interface/src/views/landscape/components/Sidebar/SidebarList.tsx b/pkg/interface/src/views/landscape/components/Sidebar/SidebarList.tsx index 1b1749ea0..08759f19c 100644 --- a/pkg/interface/src/views/landscape/components/Sidebar/SidebarList.tsx +++ b/pkg/interface/src/views/landscape/components/Sidebar/SidebarList.tsx @@ -20,7 +20,7 @@ function sidebarSort( const alphabetical = (a: string, b: string) => { const aAssoc = associations[a]; const bAssoc = associations[b]; - const aTitle = aAssoc?.metadata?.title || b; + const aTitle = aAssoc?.metadata?.title || a; const bTitle = bAssoc?.metadata?.title || b; return alphabeticalOrder(aTitle, bTitle);