When posting a note with manually ordered images, the activitypub renderer reorder images to uploaded order.
Images should be federated in the order set in Misskey.
Images get federated in DB row order.
On local the image is ordered fine, but on remote the image order is scrambled.


Misskey 11.34.0 -> Other ActivityPub instances (including other Misskey Instance)
Temporary fix here, but maybe there is a way to order this in ORM instead of using .sort()?
Related to (or duplicated?) https://github.com/syuilo/misskey/issues/5550
By Misskey's drive feature, sometimes DB order vs attached order is different.
So you need to preserve the attached order, instead of sorting by the id (DB row order / uploaded order).