Fix date sorting in charts.js
Merge branch 'master' into gh-pages