struct Keyword { std::string keyword; int numUses; }; bool sortingVector(const Keyword& key1, const Keyword& key2) { return key1.numUses < key2
You have multiple sortingVector functions - thus the <unresolved overloaded function type> part of your error.
<unresolved overloaded function type>
I believe right example here -> Sorting a vector of custom objects