sort(开始地址,结束地址,compare)//compare不填按升序
稳定排序
stable_sort(开始地址,结束地址,compare)
static bool compare(int a,int b){ return a>b;//降序 }
C++排序函数
原文:https://www.cnblogs.com/FrostyForest/p/14792145.html