Skip to content

Commit ef2e945

Browse files
ENGCOM-4844: #222249 configurable product images wrong sorting fix #22287
- Merge Pull Request #22287 from Wirson/magento2:22249-configurable-product-imgs-wrong-order - Merged commits: 1. 700a153
2 parents d1906d8 + 700a153 commit ef2e945

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
@@ -697,7 +697,7 @@ define([
697697
*/
698698
_sortImages: function (images) {
699699
return _.sortBy(images, function (image) {
700-
return image.position;
700+
return parseInt(image.position, 10);
701701
});
702702
},
703703

0 commit comments

Comments
 (0)