Skip to content

Commit 8e09b59

Browse files
author
Stanislav Idolov
authored
ENGCOM-965: [Forwardport] Fix product attribute ordering when more than 10 attributes #14183
2 parents 28916b5 + aa0bd4d commit 8e09b59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Swatches/view/frontend/web/js/swatch-renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ define([
312312
*/
313313
_sortAttributes: function () {
314314
this.options.jsonConfig.attributes = _.sortBy(this.options.jsonConfig.attributes, function (attribute) {
315-
return attribute.position;
315+
return parseInt(attribute.position, 10);
316316
});
317317
},
318318

0 commit comments

Comments
 (0)