Skip to content

Commit 3e9500d

Browse files
Fixed one issue
1 parent 547ef52 commit 3e9500d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plots/plots.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3207,7 +3207,7 @@ function sortAxisCategoriesByValue(axList, gd) {
32073207
median: function(values) {return Lib.median(values);}
32083208
};
32093209

3210-
function sortValues(a, b) {
3210+
function sortValues(a, b, order) {
32113211
return order === 'descending' ? b[1] - a[1] : a[1] - b[1];
32123212
}
32133213

@@ -3332,7 +3332,7 @@ function sortAxisCategoriesByValue(axList, gd) {
33323332
}
33333333

33343334
// Sort by aggregated value
3335-
categoriesAggregatedValue.sort(sortValues);
3335+
categoriesAggregatedValue.sort((a,b) => sortValues(a, b, order));
33363336

33373337
ax._categoriesAggregatedValue = categoriesAggregatedValue;
33383338

0 commit comments

Comments
 (0)