Minor syntax improvement

This commit is contained in:
J Guthrie
2019-01-21 23:15:24 +00:00
committed by Bryan Housel
parent a3930c35a3
commit e786bd54b1
+1 -1
View File
@@ -55,7 +55,7 @@ export function actionStraighten(selectedIDs, projection) {
endNodeIdx = nodes.indexOf(graph.entity(selectedNodes[1])),
sortedStartEnd = [startNodeIdx, endNodeIdx];
sortedStartEnd.sort(function(a,b) {
sortedStartEnd.sort(function(a, b) {
return a - b;
});