Hi all:
Jed: The button solution you suggested work fine (see listing below).
Erwan and Tobias: Thanks for your posts about (what I interpret to be) a
more generalized approach for addressing my use case.
Steve Wharton
```
<$button>Sort Tags
<$list filter='[!is[system]]'>
<$set name=TagsString filter='[<currentTiddler>tags[]sort[]]'>
<$action-setfield tags=<<TagsString>>/>
</$set>
</$list>
</$button>
<table>
<$list filter="[!is[system]tag[BC]sort[tags]]">
<$set name="sorted_tags" filter="[is[current]tags[]sort[]]">
<tr>
<td><$link to={{!!title}}><$view field="title"/></$link></td>
<td><$list filter="[all[current]tags[]sort[title]]"
template="$:/core/ui/TagTemplate" storyview="pop"/></td>
</tr>
</$set>
</$list>
</table>
```
On Saturday, November 7, 2015 at 4:41:06 AM UTC-5, Tobias Beer wrote:
>
> Hi Erwan,
>
>
>> Yes, thank you Tobias for understanding and formalizing my idea!
>> Should we open an issue about that?
>>
>
> I think we should, but let's go one more round beforehand, perhaps.
>
> Now I'm beginning to think that it should *not* be a filter of its own
> but rather a flag (/suffix) to *any* available sort filter that instructs
> it to sort by the evaluated operand, e.g.:
>
> {{{ [sort:eval<sortfilter>] }}}
>
> In other words:
>
> Sort the input elements by the output of evaluating the specified operand
> as a filter expression against each item in turn. This should be
> implemented by some global interface that does the evaluating that all sort
> operations use rather than each sort operand implementing that individually.
>
> So, we have a map of key=>value pairs with the keys being the items (by
> default tiddler titles) and the values being the things to sort by, by
> default also tiddler title but possibly something else, e.g. some field or
> "an evaluated filter expression".
>
> Equivalently:
>
> {{{ [sortcs:eval<sortfilter>] }}}
>
> etc...
>
> Not sure if an "evaluated operand" would be relevant for other filter
> operations other than sorting and whether we could / should devise a syntax
> that always does evaluation, no matter what filter operator.
>
> Best wishes,
>
> — tb
>
--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/aa53a304-8058-4756-9244-1d3e0b0d401e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.