Skip to content

Commit aa0bd4d

Browse files
ENGCOM-965: [Forwardport] Fix product attribute ordering when more than 10 attributes #14183
- Merge Pull Request #14183 from rostyslav-hymon/magento2:2.3-develop-PR-port-14083 - Merged commits: 1. cbc5e76 2. c1a9fab
2 parents 28916b5 + c1a9fab commit aa0bd4d

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)