Why bother with sorting machines, even, if you're using barrels?
Or rather, the filters they come with. You should just prefill the barrels with an item that you want in it (so no others can go in), then just set the sorting machines to pull and leave it be- they'll automatically go where they...