MUC History message order

Hello,

when i try a MUC groupchat and receive the history the messages sometimes come in a wrong order. This happens only sometimes and the order is random. Any idea whats going on there? I dont think its a clients Job to sort them by date.

Alex