sorts work after filter (needs refactoring...)