Skip to content
Snippets Groups Projects
Commit 3b71a463 authored by Tifenn Guillas's avatar Tifenn Guillas
Browse files

fix ordering display criteria

parent 0f06f5b5
No related branches found
No related tags found
2 merge requests!68Develop,!62Fix bug ordering and datatable link
......@@ -20,7 +20,10 @@ export class CriteriaByFamilyComponent {
}
getOptions(idAttribute: number): Option[] {
return this.attributeList.find(attribute => attribute.id === idAttribute).options;
return this.attributeList
.find(attribute => attribute.id === idAttribute)
.options
.sort((a, b) => a.display - b.display);
}
getCriterion(id: number): Criterion {
......
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