June 2017
Beginner to intermediate
296 pages
7h 4m
English
Okay, let's do one more round of improvements on our word-count script. We need to sort our results of word-count by something useful. Instead of just having a random list of words associated with how many times they appear, what we want is to see the least used words at the beginning of our list and the most used words at the end. This should give us some actually interesting information to look at. To do this, we're going to need to manipulate our results a little bit more directly-we can't just cheat and use countByValue and call it done.
Read now
Unlock full access