use hash option for reorder