See this SO question: http://stackoverflow.com/questions/23774871/dc-js-sort-ordinal-chart-by-y-axis-value 