Reduce space taken for reordering