replace sorting by keywords and terms with filtering by