Posts: 2,437
Joined: Mar 2010
Reputation:
50
jingai
Skilled Skinner
Posts: 2,437
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.
Posts: 2,437
Joined: Mar 2010
Reputation:
50
jingai
Skilled Skinner
Posts: 2,437
...just not possible I'm assuming?
Posts: 321
Joined: Jan 2009
Reputation:
0
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).
Posts: 2,437
Joined: Mar 2010
Reputation:
50
jingai
Skilled Skinner
Posts: 2,437
Well... maybe I can make a request for this to be added then? Add to Trac?
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Not possible atm, no. Not sure how easy it'd be to add (it'd be dependent on sort mode I guess?)
Posts: 2,437
Joined: Mar 2010
Reputation:
50
jingai
Skilled Skinner
Posts: 2,437
Not sure I understand. Are there sort methods that don't use ascending/descending?
Posts: 26,215
Joined: Oct 2003
Reputation:
187
No, but one presumes you only want to change the direction for one particular sort mode, not for all of them.
Posts: 2,437
Joined: Mar 2010
Reputation:
50
jingai
Skilled Skinner
Posts: 2,437
2012-12-20, 21:57
(This post was last modified: 2012-12-20, 21:59 by jingai.)
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.
Posts: 2,437
Joined: Mar 2010
Reputation:
50
jingai
Skilled Skinner
Posts: 2,437
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.