Merge pull request #5348 from dumganhar/develop

issue #4020: Sorts the elements in cocos_files.
This commit is contained in:
James Chen 2014-02-13 13:46:44 +08:00
commit 37fabcb6ce
1 changed files with 1 additions and 0 deletions

View File

@ -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()