Correctly order chart values