Add support to filtering and sorting in endless-pagination.js