API: filter(id, md, vals) -> filter(vals, id, md)
TST/BUG: it was be possible to trigger a bug by modigying the data manually
Merge pull request #402 from Jorge-C/filter

Filter