Sort a vector of strings

Hi I am hoping someone might be able to help with with a quick question. I am working on a problem on paper as I am not near a computer, so I can not test what I am about to ask.

If I get input from a user as strings, and each string I pass it to a vector. Can I call sort() on the vector to put the strings into alphabetical order?

----------------
Hello everyone, my name is Vanco, nice to meet you.
https://ruthamcau.vn
Last edited on
Yes.
Topic archived. No new replies allowed.