Ok, here is the working code:
var sortby = getParam(params,"sortby",false);
if(sortby&&sortby.length) {
store.sortTiddlers(tagged,sortby);
}
As you can see this uses the sortby paramater rather than a blank.
On Mon, Jun 20, 2011 at 7:01 PM, Arlen Beiler <[email protected]> wrote:
> Would it be a big deal to add support for sorting
> to config.macros.tagging.handler? I don't know if this is all that is
> required, but here is a code sample.
>
> var sortby = this.getAttribute("sortby");
> if(sortby&&sortby.length) {
> store.sortTiddlers(tagged,sortby);
> }
>
> How we get sortby set is not quite as obvious to me in this case since I am
> not sure where params gets set. A pointer would be helpful.
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywikidev?hl=en.