Fix: "AttributeError: 'dict_items' object has no attribute 'sort'"
Happens on pip install with Python 3.