diff --git a/src/app/structure-list/components/structure-list-search/structure-list-search.component.ts b/src/app/structure-list/components/structure-list-search/structure-list-search.component.ts index 30189b580b3fcb9817c9a4aa5f32791ffdc7f8e9..48df73b80f3bc398046b3877841ab70b0e93408c 100644 --- a/src/app/structure-list/components/structure-list-search/structure-list-search.component.ts +++ b/src/app/structure-list/components/structure-list-search/structure-list-search.component.ts @@ -208,18 +208,23 @@ export class StructureListSearchComponent implements OnInit { switch (category.theme) { case Theme.onlineProcedure: this.categoriesAccompaniment.push(category); + this.categoriesAccompaniment = this.categoriesAccompaniment.sort((a, b) => a.name.localeCompare(b.name)); break; case Theme.skills: this.categoriesTraining.push(category); + this.categoriesTraining = this.categoriesTraining.sort((a, b) => a.name.localeCompare(b.name)); break; case Theme.materialAndWifi: this.categoriesEquipment.push(category); + this.categoriesEquipment = this.categoriesEquipment.sort((a, b) => a.name.localeCompare(b.name)); break; case Theme.public: this.categoriesPublic.push(category); + this.categoriesPublic = this.categoriesPublic.sort((a, b) => a.name.localeCompare(b.name)); break; default: this.categoriesMoreFilters.push(category); + this.categoriesMoreFilters = this.categoriesMoreFilters.sort((a, b) => a.name.localeCompare(b.name)); break; } });