sorting vector of vector of strings in C++

后端 未结 4 580
既然无缘
既然无缘 2020-12-21 01:23

I am having trouble to figure out, how to sort a vector of vector of strings, here is the testing code.


#include <iostream>
#include <vector>
#incl         


        
4条回答
  •  时光取名叫无心
    2020-12-21 01:46

    Alright: new -simpler- answer, having learned that vectors are comparable:

    //sorting code here...
    std::sort(data_var.begin(), data_var.end(), std::greater>());
    

提交回复
热议问题