Make sure messages are shown in the correct order.