Group Anagrams Write a method to sort an array of strings so that all the anagrams are next to each other. Solutions: Swift O(n log n) C++ O(n log n) Installation Run make to build and run Swift files. Or you can run .playground file.