added filterBy and sortBy.