replace sort by sort_values on lines 47 and 98
replace sort by sort_values on lines 47 and 98