Sort characters by frequency
Given a string, rearrange it so the most frequent characters come first, each character's copies kept together. Count with a hash map, then sort or bucket by count.
No answer yet. Write the first one; the best answer gets endorsed.
