Skip to content

Commit 49097a9

Browse files
authored
ENGCOM-4844: #222249 configurable product images wrong sorting fix #22287
2 parents 93a8162 + ef2e945 commit 49097a9

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)