AFAIK, the list widget doesn't have a "sort" attribute. You have to add the 
sort as a filter operator, usually at the end of your filter run. 

.. filter="[tags[stuff]sort[timestamp]]" ... 

or possibly as a separate run

... filter="[tags[stuff]specialoperators[stuff]]  +[sort[timestamp]]" ...

I'm assuming in this that you actually have a field "timestamp". 

Good luck!

On Wednesday, October 16, 2019 at 5:41:20 PM UTC-7, Surya wrote:
>
> Hello,
>
> I have a very nice Search by multiple tags, which works really good.
> The filter-results I want to be sorted by the field "timestamp". But that 
> doesn't work- it is always sorted by title. I don't understand why.
> I tried to write the sort="timestamp" before the 
> template="$:/core/ui/ListItemTemplate 
> 2" and I tried it with different brackets and without the ". But that all 
> didn't help.
> This is the code (without all the checkboxes for all the tags- because 
> that's a lot, and I think, you don't need that part of the code, to tell 
> me, why
>
> <div style="text-align:center;line-height:0.8em;font-size:1.7em;">
> <$button>
> <$wikify name="searchterm" text='[<$list 
> filter="[[$:/temp/tagsforfiltering]indexes[]]"><$list 
> filter="[[$:/temp/tagsforfiltering]getindex<currentTiddler>]" 
> variable="tagfound">tag[<<tagfound>
> >]</$list></$list>]{{$:/temp/advancedsearchtagfilter!!ratingfilter}}'>
> <$action-setfield $tiddler="$:/temp/advancedsearchtagfilter" text=<
> <searchterm>>/>
> @@background:olivedrab; ''Search'' @@
> </$wikify>
> <$wikify name="tagsforfiltering" text='Chosen Tags<$list 
> filter="[[$:/temp/tagsforfiltering]indexes[]]"><$list 
> filter="[[$:/temp/tagsforfiltering]getindex<currentTiddler>]" 
> variable="tagfound">  
> <<tagfound>></$list></$list>{{$:/temp/advancedsearchtagfilter!!ratingfilter}}:
>  
> '>
> <$action-setfield $tiddler="$:/temp/advancedsearchtagfilter" 
> tagsforfiltering=<<tagsforfiltering>>/>
> </$wikify>
>
> </$button>
> <$button>
> <$action-deletetiddler $tiddler="$:/temp/tagsforfiltering"/>
> <$action-deletetiddler $tiddler="$:/temp/advancedsearchtagfilter"/>
> @@background:orange; Reset @@
> </$button></div><br/>
>
>
> Found Tiddlers:
> <$count filter={{$:/temp/advancedsearchtagfilter}} 
> template="$:/core/ui/ListItemTemplate"/>
>
> <$button>@@background:olivedrab;Open all found tiddlers@@
> <$list filter={{$:/temp/advancedsearchtagfilter}}>
> <$action-navigate $to=<<currentTiddler>> $scroll=no/>
> </$list>
> </$button><br/><br/>
>
> <$reveal type="nomatch" state="$:/temp/advancedsearchtagfilter" text="[]">
> {{$:/temp/advancedsearchtagfilter!!tagsforfiltering}}
> <$list filter={{$:/temp/advancedsearchtagfilter}} 
> template="$:/core/ui/ListItemTemplate 2" sort="timestamp"/>
> </$reveal>
> <$reveal type="match" state="$:/temp/advancedsearchtagfilter" text="[]">
>
> No tags selected.</$reveal>
>
> Please could you help me with this.
> If you have questions about anything, please ask.
> Thank you,
> Surya
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6aeb9005-4f04-4243-bee6-b6a72dc1e707%40googlegroups.com.

Reply via email to