Optimize which filters are enabled and the order they are chosen in ties