from collections import OrderedDict
d = {'57481': 50, '57480': 89, '57483': 110, '57482': 18, '57485': 82,
    '57484': 40}
OrderedDict(sorted(list(d.items()), key=lambda t: t[0]))
How to sort dictionary by key in numerical order Python