Mpm chapter 6

Does this sort them in descending order? Also this sorts by word count rather than word code point order, which the exercise wanted.