We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 28916b5 + c1a9fab commit aa0bd4dCopy full SHA for aa0bd4d
app/code/Magento/Swatches/view/frontend/web/js/swatch-renderer.js
@@ -312,7 +312,7 @@ define([
312
*/
313
_sortAttributes: function () {
314
this.options.jsonConfig.attributes = _.sortBy(this.options.jsonConfig.attributes, function (attribute) {
315
- return attribute.position;
+ return parseInt(attribute.position, 10);
316
});
317
},
318
0 commit comments