Fixes #38: getChartData returns sorted data by x