Dictionary sorts from text files by key and values