diff --git a/teavm-core/src/main/java/org/teavm/common/GraphBuilder.java b/teavm-core/src/main/java/org/teavm/common/GraphBuilder.java index fad4816e2..1306006c2 100644 --- a/teavm-core/src/main/java/org/teavm/common/GraphBuilder.java +++ b/teavm-core/src/main/java/org/teavm/common/GraphBuilder.java @@ -86,7 +86,7 @@ public class GraphBuilder { int[][] incomingEdgeList = new int[sz][]; for (int i = 0; i < sz; ++i) { incomingEdgeList[i] = incomingEdges[i].toArray(); - Arrays.sort(incomingEdgeList); + Arrays.sort(incomingEdgeList[i]); } builtGraph = new GraphImpl(incomingEdgeList, outgoingEdgeList); }