get data with sorting and filtering