Search: Group together result types

Short and sweet. Previous search functionality broke the grouping of results, this one bunches them up together by their types (Videos, topics and exercises).