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
Pointers can act as iterators, so you just need pointers to the beginning and just past the end of the array.