Group tests logically rather than alphabetically.