sorting rows based on numerical slot values