Sorts students by age before displaying them in the index.