Implement sory before creating the dounat chart