Skip to content

Commit 6472ff7

Browse files
committed
Remove sort the media gallery
1 parent 14a4f02 commit 6472ff7

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Product/MediaGallery.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,6 @@ public function resolve(
5757
= $entry->getExtensionAttributes()->getVideoContent()->getData();
5858
}
5959
}
60-
if (!empty($mediaGalleryEntries)) {
61-
usort(
62-
$mediaGalleryEntries,
63-
function ($entryA, $entryB) {
64-
return ($entryA['position'] < $entryB['position']) ? -1 : 1;
65-
}
66-
);
67-
}
6860
return $mediaGalleryEntries;
6961
}
7062
}

0 commit comments

Comments
 (0)