Implemented sorting and filtering methods