Sort the dict