mirror of https://github.com/axmolengine/axmol.git
Merge pull request #5348 from dumganhar/develop
issue #4020: Sorts the elements in cocos_files.
This commit is contained in:
commit
37fabcb6ce
|
@ -128,6 +128,7 @@ class CocosFileList:
|
|||
Save content to file with json format.
|
||||
"""
|
||||
f = open(fileName,"w")
|
||||
self.fileList.sort()
|
||||
content = "[\n\"%s\"\n]" % ("\",\n\"".join(self.fileList))
|
||||
f.write(content)
|
||||
f.close()
|
||||
|
|
Loading…
Reference in New Issue