Minor fix in chart sorting