diff --git a/packages/manager/apps/dedicated/client/app/dedicated/server/install/image/components/options/controller.js b/packages/manager/apps/dedicated/client/app/dedicated/server/install/image/components/options/controller.js index dc9875e505cb..763a9b7da7b9 100644 --- a/packages/manager/apps/dedicated/client/app/dedicated/server/install/image/components/options/controller.js +++ b/packages/manager/apps/dedicated/client/app/dedicated/server/install/image/components/options/controller.js @@ -1,5 +1,9 @@ export default class DedicatedServerInstallImageOptionsCtrl { $onInit() { - [this.model.diskGroup] = this.server.hardware.specifications.diskGroups; + [this.model.diskGroup] = !this.server.hardware.specifications.diskGroups + ? [] + : this.server.hardware.specifications.diskGroups.sort((a, b) => + a.description.localeCompare(b.description), + ); } } diff --git a/packages/manager/apps/dedicated/client/app/dedicated/server/installation/ovh/dedicated-server-installation-ovh.controller.js b/packages/manager/apps/dedicated/client/app/dedicated/server/installation/ovh/dedicated-server-installation-ovh.controller.js index 54deef9d5d6d..b5a1b7c71eb6 100644 --- a/packages/manager/apps/dedicated/client/app/dedicated/server/installation/ovh/dedicated-server-installation-ovh.controller.js +++ b/packages/manager/apps/dedicated/client/app/dedicated/server/installation/ovh/dedicated-server-installation-ovh.controller.js @@ -409,7 +409,11 @@ angular function getHardwareSpecification() { return Server.getHardwareSpecifications($stateParams.productId).then( (spec) => { - $scope.informations.diskGroups = spec.diskGroups; + $scope.informations.diskGroups = !spec.diskGroups + ? [] + : spec.diskGroups.sort((a, b) => + a.description.localeCompare(b.description), + ); resetDiskGroup(); }, );