So I have a list of char * that is storing words from a text file.
char* tempWord = new char[20];
list<DT> list1= new <DT>list();
while (!cin.eof()) {
cin >> tempWord;
list1.push_back(tempWord);
}
list1.sort();
But the sort is not working. It is not sorting. If I add APPLE APPIE APPLS in the txt, I get the same after sort, I should be getting APPIE APPLE APPLS. Any ideas why or how do I sort it?