参考:
https://blog.csdn.net/u013346007/article/details/81877755
https://www.linuxidc.com/Linux/2017-01/140078.htm
https://www.cnblogs.com/gccbuaa/p/7111480.html
sort和stable_sort都是全排序函数,但是sort是非稳定排序算法,而stable_sort是稳定排序算法。
#include "paixu.h" #include <qstring.h> struct MyStruct { int id; QString name; }; using namespace std; bool bigger_than(const MyStr