Reorder output