Permalink
Browse files

Fixed bug #337, unstable sorting of legend in chrome

  • Loading branch information...
1 parent 61d4b13 commit 72e512b9cff5d950e214ffa34c29daaa4fb69a60 @eolsson eolsson committed Aug 4, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 js/highcharts.src.js
  2. +1 −1 js/parts/Chart.js
@@ -6959,7 +6959,7 @@ function Chart(options, callback) {
});
// sort by legendIndex
- allItems.sort(function (a, b) {
+ stableSort(allItems, function (a, b) {
return (a.options.legendIndex || 0) - (b.options.legendIndex || 0);
});
View
@@ -3002,7 +3002,7 @@ function Chart(options, callback) {
});
// sort by legendIndex
- allItems.sort(function (a, b) {
+ stableSort(allItems, function (a, b) {
return (a.options.legendIndex || 0) - (b.options.legendIndex || 0);
});

0 comments on commit 72e512b

Please sign in to comment.