# Sorting Array Aggregator Output by 'alt' – Need Help

**URL:** <https://community.make.com/t/sorting-array-aggregator-output-by-alt-need-help/86056>\
**Category:** Questions\
**Tags:** arrays\
**Created:** [July 1, 2025, 5:54pm UTC](https://community.make.com/t/sorting-array-aggregator-output-by-alt-need-help/86056 "2025-07-01T17:54:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Doble\_Pivote](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@Doble\_Pivote](https://community.make.com/u/Doble_Pivote)\
**Post date:** [July 1, 2025, 5:54pm UTC](https://community.make.com/t/sorting-array-aggregator-output-by-alt-need-help/86056/1 "2025-07-01T17:54:27Z")

</div>

**Hello everyone,**

I’d like to ask for your help. I’m having trouble solving the following task:

I need to sort an output array (from an Array Aggregator) by its `'alt'` property. This comes after a “Share for Files/Folders” step, where I get a list of photos numbered from 1 to 9. Then, the Array Aggregator generates this list in a random order.

After that, I use a **Set Variable** module to try to sort the array by the `'alt'` property from the previous step, but I haven’t been able to make it work.

Below, I’m sharing the three steps along with the details of the queries:

**The output from the Array Aggregator:**

{  
“array”: [  
{  
“alt”: “4.png - Camiseta AC Milan Futbol 2003:2005”,  
“originalSource”: “…”,  
“mediaContentType”: “IMAGE”  
},  
{  
“alt”: “6.png - Camiseta AC Milan Futbol 2003:2005”,  
“originalSource”: “…”,  
“mediaContentType”: “IMAGE”  
},

…

**Now, the output of the Set Variable module (where I’m trying to sort the previous array):**

[  
{  
“sort\_images”: “sort({"alt":"4.png - Camiseta AC Milan Futbol 2003:2005","originalSource":"…”:"IMAGE"}, {"alt":"6.png - Camiseta AC Milan Futbol 2003:2005","originalSource":"…","mediaContentType":"IMAGE"}, … etc:

Thank you in advance,

 ![Captura de pantalla 2025-07-01 a las 19.40.27](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/3/d/3d70ba23bb210dfb3ec3886d0d569a51ef121a94.png)  
 ![Captura de pantalla 2025-07-01 a las 19.40.51](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/9/b/9b028a1b215600d10bc0a5eb11f448e688b938b4.png)  
 ![Captura de pantalla 2025-07-01 a las 19.41.35](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/4/44ff7260b987ec6c6205d40bc30b8432b37fea11.png)  
 ![Captura de pantalla 2025-07-01 a las 19.51.55](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/e/4e73f72b17c8bbb129b5b012c1cfd90b473d9909.png)

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [September 29, 2025, 5:57pm UTC](https://community.make.com/t/sorting-array-aggregator-output-by-alt-need-help/86056/2 "2025-09-29T17:57:02Z")

</div>


