Commit 3b71a463 authored by Tifenn Guillas's avatar Tifenn Guillas
Browse files

fix ordering display criteria

parent 0f06f5b5
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment