If the file is not sorted, we can still handle it but the performance is not good (more memory space and more slicing).