Try to sort data.