Add option to sort chart data