std::deque<std::pair<std::string, std::string>> mFiles;
I have tried a few compare classes without any luck. eg-> the following lambda:
sort(mFiles.begin(), mFiles.end(), [](std::pair<string, string> a, std::pair<string, string> b) {
//code to ignore case during comparison
return a<b;
});
I'm using the following code to sort using the first element of the std::pair:
std::sort(mFiles.begin(), mFiles.end());