Quote Originally Posted by smurf12125 View Post
Wouldn't I need to since StringArray would repeat until it a break function is input? Because StringArray would keep inputing text to the .txt file and would clear itself when it inputs the text to the file.
Point to us where you were told that std::sort did anything that you stated. Or are you just making things up?

std::sort does that -- sorts a sequence of values. It doesn't do anything else. The last argument depends on the first two -- you are sorting std::string, not int, therefore the greater template must be based on std::string.

Regards,

Paul McKenzie