#include <algorithm>
//比较函数
bool StructCmpFunc(const ReqWeatherParameter_t & strThis, const ReqWeatherParameter_t & strThat)
{
QString qstrThis = strThis.wWeatherName.c_str();
QString str3 = qstrThis.mid(qstrThis.lastIndexOf(':', -1) + 1);
QString qstrThat = strThat.wWeatherName.c_str();
QString str4 = qstrThat.mid(qstrThat.lastIndexOf(':', -1) + 1);
return (str3.toInt() < str4.toInt());
}
std::vector<ReqWeatherParameter_t> & vtWeatherParamData = stWeatherParameterData.vtWeatherParamData;
sort(vtWeatherParamData.begin(), vtWeatherParamData.end(), StructCmpFunc); //排序