cpp compare strings alphabetically