Sort chart data by date. Closes #10