Skip to content

Commit

Permalink
FBP-395. Fix sort function
Browse files Browse the repository at this point in the history
  • Loading branch information
valb3r committed Jan 1, 2025
1 parent 43b9d55 commit 75f5fd5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ abstract class BaseBpmnParser: BpmnParser {
// Sorting data in CustomizedXmlWriter is expensive performance-wise
val existingElems = target.elements().map { it.name }.toMutableList()
existingElems.add(addedSimpleName)
existingElems.sortedWith(Comparator.comparingInt { elementOrder(target.name, it) ?: Int.MAX_VALUE })
existingElems.sortWith(Comparator.comparingInt { elementOrder(target.name, it) ?: Int.MAX_VALUE })
val addToIndex = existingElems.indexOf(addedSimpleName)

val newElem = addElem()
Expand Down

0 comments on commit 75f5fd5

Please sign in to comment.