Sorting and visualizing the trend