2010-10-21, 14:52
filigran Wrote:So the starting letters ar eC L A L S M. No ABC there. I want them to be sorted A C L L M S, so that the file is easily browsable. Is that hard to do? Isn't there a simple theobject.sort(); in python? I seem to recall that from the last time I tried to learn the language. And I see you using sorted() at some points in the file. Surely there's a way to sort the end result, before shunting it into the file? I'll see if I can hack something up.
Edit: Ah, dictionaries can't be sorted that easy. Dang.
I'm not the original coder of the plug-in, and I don't know a lot of things about python and XBMC programming. I just "guess" how works the code and have just modified it to add some functionalities I wanted.
I will try to see if I can found how sort the XML file content. But it will not be my priority because, into XBMC, games appear already alphabetically sorted. Also, if you want to quickly found a game into the launchers.xml file it is better to use the search option of your text editor than browses it.