I am writing code for a question which is: Write a method to sort an array of strings so that all the anagrams are next to each other. If my container is vector, it will be
int sortStrarr(string strarr[], int len){ sort(&strarr[0],&strarr[len],compare) ; //sort(strarr's iterator.begin, strarr's iterator.end, compare); ??? }