order messages in client