Commit 1a4f4062 authored by François Agneray's avatar François Agneray
Browse files

Fixed bug: order by output display

parent 30e6a238
......@@ -35,6 +35,11 @@ export class OutputByFamilyComponent {
}
change(clonedOutputList: number[]): void {
this.changed.emit(clonedOutputList);
this.changed.emit(
this.datasetAttributeList
.filter(a => clonedOutputList.indexOf(a.id) > -1)
.sort((a, b) => a.output_display - b.output_display)
.map(a => a.id)
);
}
}
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