Swapping out a collection filter

Hey guys,

I am creating an app that requires a list to be grouped by date or by name. I am currently doing two different filters that by themselves work great.

<div collection-repeat="item in recipees | filter : {category: filter.category} | groupByName>

I want to be able to press a button and swap the groupByName by a groupByDate filter. Is this possible?