Container.SetSortDirection?
#1
Is it possible for a plugin to set the sort direction of the current container? Container.SortDirection can toggle it, but it can't set it explicitly.
Reply
#2
...just not possible I'm assuming?
Reply
#3
I'm definitely interested in this and would love to know how to do this (if it exists today) or how to submit an enhancement request (if it doesn't exist in Frodo).
Reply
#4
Well... maybe I can make a request for this to be added then? Add to Trac?
Reply
#5
Not possible atm, no. Not sure how easy it'd be to add (it'd be dependent on sort mode I guess?)
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#6
Not sure I understand. Are there sort methods that don't use ascending/descending?
Reply
#7
No, but one presumes you only want to change the direction for one particular sort mode, not for all of them.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#8
Oh, hmm. I actually never realized it stored the sort direction for each sort mode. Well, I in particular just wanted to be able to change it for the current sort mode.

edit: Basically, exactly how Container.SortDirection toggles it, only to be able to jam it to one or the other too. If Container.SortDirection() was modified to accept a parameter, that would do the trick for me.
Reply
#9
Just bumping this.. I'd still really like to implement this in my addon. The default sort direction is basically wrong for this type of application (photo viewer) and it's a tad annoying to have to change it for every album.
Reply

Logout Mark Read Team Forum Stats Members Help
Container.SetSortDirection?0