At least with chromium browsers as of March 2025, I've personally seen messages get processed in a completely different order than which they were sent. So between my own experience and the answer posted here it seems that you can't rely on messages being processed in the order they're sent.