# Object sorting

**URL:** <https://community.hubspot.com/t/object-sorting/78609>\
**Category:** CMS Development\
**Created:** [April 3, 2023, 4:18pm UTC](https://community.hubspot.com/t/object-sorting/78609 "2023-04-03T16:18:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SStrachan1](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@SStrachan1](https://community.hubspot.com/u/SStrachan1)\
**Post date:** [April 3, 2023, 4:18pm UTC](https://community.hubspot.com/t/object-sorting/78609/1 "2023-04-03T16:18:46Z")

</div>

I am sending some ID’s to a custom object to render out in an email.  
Example: 2059684456; 501998096; 807380387; 496620169

However, they are sorted differently than whats above. I want the to be displayed in the order provided in the example. How can I achieve this?

---

<div class="post-metadata">

**Author:** ![PamCotton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pamcotton/32/47916_2.png) [@PamCotton](https://community.hubspot.com/u/PamCotton)\
**Post date:** [April 4, 2023, 1:51pm UTC](https://community.hubspot.com/t/object-sorting/78609/2 "2023-04-04T13:51:52Z")

</div>

Hello @SStrachan1, thank you for posting in our Community!

I want to invite our top experts to this conversation @Teun @alyssamwilie @DanielSanchez any recommendations for @SStrachan1?

Thank you,

Pam

---

<div class="post-metadata">

**Author:** ![SStrachan1](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@SStrachan1](https://community.hubspot.com/u/SStrachan1)\
**Post date:** [April 4, 2023, 6:20pm UTC](https://community.hubspot.com/t/object-sorting/78609/3 "2023-04-04T18:20:27Z")

</div>

Thanks @PamCotton
