Use sort_by in missing deps doctor check