C++ · Strings and characters

char or string, and comparing text

Sorting names or checking a typed answer means comparing text, and C++ compares it by character codes, not by the alphabet you learned.