def locked_put(self, credentials):
        self._create_file_if_needed()
        self._validate_file()
        f = open(self._filename, 'w')
        f.write(credentials.to_json())
        f.close()
Sort the key order in the OrderedDict.
dataset/ETHPy150Open google/oauth2client/oauth2client/file.py/Storage.locked_put--crossover with--dataset/ETHPy150Open editorconfig/editorconfig-vim/plugin/editorconfig-core-py/editorconfig/odict.py/OrderedDict.sort