Display getAllTokenIds() in order

Dear Support,
Is there a way to display the return of getAllTokenIds() in order?
It appears to return the Tokens in a random way, not in the order it was minted.

Any help will be appreciated.
Thanks

Thereโ€™s no inherent sorting on this endpoint according to the docs so youโ€™ll need to implement it yourself.