sort_list considers symbols' length then frequency