require function argument in calls to model.filter and model.sort