diff --git a/app/portainer/views/templates/templates.html b/app/portainer/views/templates/templates.html index 692f39f62..772c3f500 100644 --- a/app/portainer/views/templates/templates.html +++ b/app/portainer/views/templates/templates.html @@ -86,7 +86,7 @@ -
+
@@ -236,16 +236,14 @@
- volume - +
+ volume +
+ +
+
diff --git a/app/portainer/views/templates/templatesController.js b/app/portainer/views/templates/templatesController.js index d0d1238f9..d2919866b 100644 --- a/app/portainer/views/templates/templatesController.js +++ b/app/portainer/views/templates/templatesController.js @@ -295,7 +295,7 @@ angular.module('portainer.app').controller('TemplatesController', [ .then(function success(data) { var templates = data.templates; $scope.templates = templates; - $scope.availableVolumes = data.volumes.Volumes; + $scope.availableVolumes = _.orderBy(data.volumes.Volumes, [(volume) => volume.Name.toLowerCase()], ['asc']); var networks = data.networks; $scope.availableNetworks = networks; var settings = data.settings;