stable_sort(vec_str.begin(),vec_str.end(), measure_compare); bool measure_compare(const node &a,const node &b) { return a.second < b.second; }