have code building sorted dicts, sorted by word frequency