Object sorting

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?

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

Thanks @PamCotton