sort the names of employee alphabetically vectors c++ gfg code example Example: how to sort a vector vector<int> v; sort(v.begin(),v.end());