# XML/CSV Shopping Feed: Order of the product images URLs

**URL:** <https://forum.shopware.com/t/xml-csv-shopping-feed-order-of-the-product-images-urls/98382>\
**Category:** Shopware 6 (English)\
**Tags:** general, administration, programming\
**Created:** [6. Februar 2023 um 15:33 UTC](https://forum.shopware.com/t/xml-csv-shopping-feed-order-of-the-product-images-urls/98382 "2023-02-06T15:33:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![MarkusFischer](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/markusfischer/32/13693_2.png) [@MarkusFischer](https://forum.shopware.com/u/MarkusFischer)\
**Post date:** [8. Februar 2023 um 08:17 UTC](https://forum.shopware.com/t/xml-csv-shopping-feed-order-of-the-product-images-urls/98382/2 "2023-02-08T08:17:09Z")

</div>

Doubled by [https://forum.shopware.com/t/xml-csv-shopping-feed-reihenfolge-der-produktbilder/98381/2](https://forum.shopware.com/t/xml-csv-shopping-feed-reihenfolge-der-produktbilder/98381/2) (German Forum)

Hello devdrop,  
I don’t have a direct solution for this. However, you can create your own solution for many things with TWIG.

The For loop only runs through the additional images from beginning to end in the standard order. To be honest, the question of a special sorting has not come up for me so far, but maybe you can solve it in a similar way as in this stackoverflow link: [https://stackoverflow.com/questions/25194470/twig-sort-array-of-objects-by-field](https://forum.shopware.com/t/xml-csv-shopping-feed-reihenfolge-der-produktbilder/98381/2). The Position field in the product\_media table could be used for this.

Best regards  
Markus

---

_[View the full topic](https://forum.shopware.com/t/xml-csv-shopping-feed-order-of-the-product-images-urls/98382)._
