Swap filters and categories
Do not return empty gids