trying to sort data