Now sorting JSON data from line charts.