@gravitee/ui-policy-studio-angular 7.28.0 → 7.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -637,7 +637,11 @@ class GioPolicyStudioPoliciesCatalogDialogComponent {
637
637
  ...policy,
638
638
  category: policy.category ?? 'Others',
639
639
  }));
640
- this.categories = uniq(this.allPolicies.map(policy => policy.category.toLowerCase()));
640
+ this.categories = uniq(this.allPolicies.map(policy => policy.category.toLowerCase())).sort((a, b) => a.localeCompare(b));
641
+ const othersIndex = this.categories.indexOf('others');
642
+ if (othersIndex !== -1) {
643
+ this.categories.push(this.categories.splice(othersIndex, 1)[0]);
644
+ }
641
645
  // By default, all categories are selected
642
646
  this.selectedCategoriesControl = new FormControl(this.categories);
643
647
  this.selectedCategoriesControl.valueChanges