Separate the sheep from the goats
Separate or sort out the good from the not so good, the source is the Bible, Matthew 25: 32, “Ass a shepherd divideth his sheep from the goats.”