I don't think your code work, don't you mean:

        var sortby = getParam(params,"sortby",false);
        var tagged = store.getTaggedTiddlers(title,sortby);

Martin

On 21 June 2011 03:11, Arlen Beiler <[email protected]> wrote:
> Sorry for two in a row, but I should have mentioned that it goes under var
> prompt = tagged.length == 0 ? this.labelNotTag : this.label;
> At least that is where I put it. I don't know if there are any problems with
> putting it there or not, but that looked right. I haven't thoroughly tested
> it, I just know it works good.
> On Mon, Jun 20, 2011 at 10:07 PM, Arlen Beiler <[email protected]> wrote:
>>
>> 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.
>

-- 
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.

Reply via email to