Skip to content

Commit 271da23

Browse files
authored
ENGCOM-4845: [BACKPORT] #222249 configurable product images wrong sorting fix #22288
2 parents f9338a3 + 5bfc5bb commit 271da23

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
@@ -728,7 +728,7 @@ define([
728728
*/
729729
_sortImages: function (images) {
730730
return _.sortBy(images, function (image) {
731-
return image.position;
731+
return parseInt(image.position, 10);
732732
});
733733
},
734734

0 commit comments

Comments
 (0)