redesign sorted shuffle and persists the data into disk.