parameters out of order for filter

renamed filter to be consistent with directive and less ambiguous