Skip to content
Snippets Groups Projects
Commit 1179f55e authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: alphabetical sort

parent 86099c8a
No related branches found
No related tags found
3 merge requests!418V2.1.0,!400V2.0,!230V2.0
......@@ -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;
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment