fixed spss_to_r for sort cases