diff --git a/Examples/HttpAnalyzer/main.cpp b/Examples/HttpAnalyzer/main.cpp index 7e2f3202d7..1e72ebb03e 100644 --- a/Examples/HttpAnalyzer/main.cpp +++ b/Examples/HttpAnalyzer/main.cpp @@ -172,7 +172,7 @@ void printMethods(const HttpRequestStats& reqStatscollector) std::vector> map2vec(reqStatscollector.methodCount.begin(), reqStatscollector.methodCount.end()); std::sort(map2vec.begin(), map2vec.end(), [](const std::pair& left, - const std::pair& right) { return left.first > right.first; }); + const std::pair& right) { return left.second > right.second; }); // go over the method count table, print each method and the aggregated figure for (auto iter : map2vec) {