Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Sort x values numerically
  • Loading branch information
matschaffer authored and rzurad committed Feb 12, 2012
1 parent 4ab1e2b commit 388c3c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion g.line.js
Expand Up @@ -182,7 +182,7 @@
Xs = Xs.concat(valuesx[i]);
}

Xs.sort();
Xs.sort(function(a,b) { return a - b; });
// remove duplicates

var Xs2 = [],
Expand Down

0 comments on commit 388c3c6

Please sign in to comment.