Skip to content

Commit 700a153

Browse files
committed
#22249 configurable product images wrong sorting fix
1 parent 8a4e356 commit 700a153

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)