updated filter to include sorted list of tags