From a1dd12a947b2acb1930a890f3eb0c986930a8d17 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Wed, 12 Jul 2017 20:52:07 +0200 Subject: [PATCH] feat(sidebar): sort available endpoints alphabetically (#1027) --- app/components/sidebar/sidebarController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/sidebar/sidebarController.js b/app/components/sidebar/sidebarController.js index 8d5fa1776..e60a2f20b 100644 --- a/app/components/sidebar/sidebarController.js +++ b/app/components/sidebar/sidebarController.js @@ -49,7 +49,7 @@ function ($q, $scope, $state, Settings, EndpointService, StateManager, EndpointP EndpointService.endpoints() .then(function success(data) { var endpoints = data; - $scope.endpoints = endpoints; + $scope.endpoints = _.sortBy(endpoints, ['Name']); setActiveEndpoint(endpoints); if (StateManager.getState().application.authentication) {