排序
sort(nums.begin(),nums.end(),std::less<int>()); // 从小到大
sort(nums.begin(),nums.end(),std::greater<int>()); //从大到小
is_sorted(nums.begin(),nums.end(),std::less<int>()); // 从小到大
is_sorted(nums.begin(),nums.end(),std::greater<int>()); // 从大到小
sort(nums.begin(),nums.end(),std::less<int>()); // 从小到大
sort(nums.begin(),nums.end(),std::greater<int>()); //从大到小
is_sorted(nums.begin(),nums.end(),std::less<int>()); // 从小到大
is_sorted(nums.begin(),nums.end(),std::greater<int>()); // 从大到小