feat(sidebar): sort available endpoints alphabetically (#1027)

pull/1030/head
Anthony Lapenna 7 years ago committed by GitHub
parent a7df43bd45
commit a1dd12a947

@ -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) {

Loading…
Cancel
Save