I've wondered about adding a variant of the sort operator that would take a
subfilter and sort the incoming titles by the result of running that filter on
each one in turn. So if the subfilter were [removeprefix[$:/]] then tiddlers
would be sorted as A, $:/B, C (ie, system tiddlers would be interleaved with
ordinary tiddlers).
So, the OP would then be possible with
<$set name="sortfilter" value="[{!!value}divide{!!time}]">
<$list filter="[tag[task]sort-by<sortfilter>]">
...
etc.
Performance might be an issue when sorting large numbers of items, but it would
open up a lot of flexibility.
Best wishes
Jeremy
--
Jeremy Ruston
[email protected]
https://jermolene.com
>> On 22 Apr 2020, at 22:12, Mat <[email protected]> wrote:
>
> I'm curious about this too, so I have no good answer. It is problematic
> because you don't have access to both the title and the calculated value at
> the same time in the listing. It's seems only possible to either sort by a
> directly accessible value or you already sorted the titles and calculate the
> value after.
>
> I have previously made a proposal for a filter operator that, mid-filter,
> stores a temporary value only to have it recalled later in the filter or in
> the succeeding listwidget content. (I will not link to it here because the
> proposal is flawed and need to rephrase it.)
>
> I said I have no good answer. Here is a bad one:
>
> Calculate the values and prepend them to the titles (e.g 7.53_MyTiddler).
> Sort by these new titles and display the names by splitting up the names to
> get the original name again. Not only do I not like this approach but I also
> don't know how all these new titles are to be temporarily stored. Maybe they
> could be appended into some physical list field? (That would be interesting,
> actually... but it's an "action" so it would have to be manually fired
> perhaps via some button click...)
>
> <:-)
> --
> 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/2a1b2d50-e081-49fa-8d56-20387993dcb8%40googlegroups.com.
--
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/1847CDBD-D147-475A-892F-24A6BB3BAC76%40gmail.com.