filter: Implement priority action

The priority setting was broken when priority was added to the dynamic data