Reindex grouping selection to have home class and year group to appear on top