Skip to content

Commit 1fb9bfe

Browse files
authored
[elsa] 优化节点排序逻辑 (#89)
1 parent e18b39d commit 1fb9bfe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

framework/elsa/fit-elsa-react/src/flow/jadeFlowPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ export const jadeFlowPage = (div, graph, name, id) => {
624624
self.reorganizeNodes = (scale, nodes = self.sm.getShapes(s => s.isTypeof('jadeNode')), lines = self.sm.getShapes(s => s.isTypeof('jadeEvent'))) => {
625625
lines.sort((a, b) => {
626626
if (a.fromShape !== b.fromShape) {
627-
return 0;
627+
return a.fromShape.localeCompare(b.fromShape);
628628
}
629629
const aFromConnector = a.definedFromConnector;
630630
const bFromConnector = b.definedFromConnector;

framework/elsa/fit-elsa-react/src/testFlowData.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)