fixed sorting for cases with two partitions on the same disk.