Add sorting and filtering.