Update word_histogram.py

add sort by frequency