added function to sort data (descending) on value