Doing that only compares the first letter doesn't it? I recall a snippet where the person was trying to order an array of C++ strings and using those conditional operators only returned the first letter of each, which threw of her program.
C++ strings are readily compared with ==, >, >=, <, <=, != ...
The operators are 'overloaded' in C++ to properly compare C++ strings.
Try it out.