Skip to content

Commit 153fb69

Browse files
Merge pull request #6621 from davidwatkins73/waltz-6620-boap-ordering
BoaP diagram supports measurable ordering
2 parents 418d907 + a56f27c commit 153fb69

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

waltz-ng/client/playpen/3/builder/TaxonomyDiagramBuilder.svelte

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@
1515
? _.chain(measurables)
1616
.filter(m => m.categoryId === selectedCategory.id)
1717
.thru(buildHierarchies)
18+
.orderBy([d => d.position, d => d.name])
1819
.map(l1 => ({
1920
id: l1.externalId,
2021
name: l1.name,
21-
rows: mkChunks(l1.children.map(l2 => ({name: l2.name, id: l2.externalId, waltzId: l2.id})), 4)
22+
rows: mkChunks(_
23+
.chain(l1.children)
24+
.orderBy([d => d.position, d => d.name])
25+
.map(l2 => ({name: l2.name, id: l2.externalId, waltzId: l2.id}))
26+
.value(),
27+
4)
2228
}))
2329
.value()
2430
: [];

0 commit comments

Comments
 (0)