Nest results by type.