keep people straight

keep people straight (in one's mind)

Fig. to correctly distinguish one person from other people. The twins look exactly alike. Not even their mother can keep them straight.
See also: keep, people, straight