From cafd28ac0b8111542bd3df5af52bdaef20a502b2 Mon Sep 17 00:00:00 2001 From: xavier-GitHub76 <82046143+xavier-GitHub76@users.noreply.github.com> Date: Tue, 14 Nov 2023 14:54:38 +0100 Subject: [PATCH] features : Applications sorted by name (Update Navigation.tsx) Before : Applications were sorted by id (so by date of creation). Now : Applications are sorted by name --- ui/src/layout/Navigation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/layout/Navigation.tsx b/ui/src/layout/Navigation.tsx index 8eea338c1..d1a640485 100644 --- a/ui/src/layout/Navigation.tsx +++ b/ui/src/layout/Navigation.tsx @@ -54,7 +54,7 @@ class Navigation extends Component< public render() { const {classes, loggedIn, appStore, navOpen, setNavOpen} = this.props; const {showRequestNotification} = this.state; - const apps = appStore.getItems(); + const apps = appStore.getItems().slice().sort((a,b) => a.name.localeCompare(b.name)); const userApps = apps.length === 0