sort std::list case sensitive elements
- by Dave18
#include <list>
#include <string>
using std::string;
using std::list;
int main()
{
list <string> list_;
list_.push_back("C");
list_.push_back("a");
list_.push_back("b");
list_.sort();
}
does sort() function sort the elements according to their character codes? I want the result here to be a b C after the sorting is done.