to distinguish people who are good at sth, intelligent, etc. from those who are not
sort out / separate the sheep from the goats
to distinguish people who are good at sth, intelligent, etc. from those who are not
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition