Skip to content

Commit 818194f

Browse files
authored
make generated content even more consistentent (#221)
i oversaw one non-unique thing due to the flakeyness of Set.toSeq
1 parent 5f242b7 commit 818194f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: codegen/src/main/scala/overflowdb/codegen/CodeGen.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ class CodeGen(schema: Schema) {
661661
.map { case (edge, neighborContexts) =>
662662
val neighborInfoForNodes =
663663
neighborContexts
664-
.sortBy(_.adjacentNode.neighbor.name)
664+
.sortBy(x => (x.adjacentNode.neighbor.name, x.adjacentNode.customStepName))
665665
.map { case AjacentNodeWithInheritanceStatus(adjacentNode, isInherited) =>
666666
NeighborInfoForNode(adjacentNode.neighbor, edge, direction, adjacentNode.cardinality, isInherited, adjacentNode.customStepName, adjacentNode.customStepDoc)
667667
}

0 commit comments

Comments
 (0)