both sort and filter are dictionaries (though I think they can be falsy as well)