index pages: improvements with groups and priority sorting