fix argument parsing of Model::filter and Model::sort