CORE-5655 converted filtered to set

In the function filter-favorites inside the set/intersection call, both arguments are now sets.