Refactor sort_weibo_words and hot_words