Add pie chart sorting