Thanks Mark!
On Thursday, October 17, 2019 at 4:53:58 AM UTC+2, Mark S. wrote:
>
>
> 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/90852d09-cc39-4f79-a5de-e4f7c53f2e74%40googlegroups.com.