From 466e8a5cd0fce655fc98f327f0b12e939446ea0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Colomb?= Date: Mon, 14 Dec 2020 16:45:38 +0100 Subject: [PATCH] gui: Sort folders and devices in advanced config modal (#7192) --- gui/default/syncthing/core/syncthingController.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 1b6440235..c73c9a4bf 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -2332,6 +2332,8 @@ angular.module('syncthing.core') $scope.advanced = function () { $scope.advancedConfig = angular.copy($scope.config); + $scope.advancedConfig.devices.sort(deviceCompare); + $scope.advancedConfig.folders.sort(folderCompare); $('#advanced').modal('show'); };