reorder messages