for(int i=0;i<tempList.size();i++){//对数组进行排序
for(int j=i+1;j<tempList.size();j++){//对数组进行排序
if(tempList[i].size()>tempList[j].size()){//从大往小里排
def temps=tempList[i]
tempList[i]=tempList[j]
tempList[j]= temps
}
}
}
for(int i=0;i<tempList.size();i++){//对数组进行排序
for(int j=i+1;j<tempList.size();j++){//对数组进行排序
if(tempList[i].size()>tempList[j].size()){//从大往小里排
def temps=tempList[i]
tempList[i]=tempList[j]
tempList[j]= temps
}
}
}