std::sort works in plain arrays too, just give the array itself as the first parameter and the array itself plus the size of the array for the second parameter.
(Also, I'm a bit disappointed that your professor is teaching you plain arrays before std::vector - hoepfully he didn't also teach you c-style strings before std::string?)
My professor actually hasn't really taught us arrays either yet. I am familiar with them, we just haven't reached them. Also, AaABbB isn't my actual string lol I was using that as an example.
Also, we use usingnamespace std; so std:: isn't much of use for us. He also talks a crap load about other stuff we have no idea about because he has ADHD