For instance, in your specific example you could use a filter like
[{!!x}multiply[10]add{!!y}] in the sortsub for your list of tiddlers
containing x and y ... you don't need a z field for this particular use.
So if you had a bunch of tiddlers tagged with "sortbyfield" you can do:
\define ssfilter() [{!!x}multiply[10]add{!!y}]
<$list filter="[tag[sortbyfield]sortsub:integer<ssfilter>]"/>
This works for your particular example that you provided because you can do
math in the filter. Not sure how easy it would be in the general sense.
/Mike
On Tuesday, May 18, 2021 at 9:03:46 AM UTC-3 Michael Wiktowy wrote:
> Not exactly what you want but if you can express your combination of field
> x and field y as a filter expression, you should be able to use sortsub.
> /Mike
>
>
> On Monday, May 17, 2021 at 10:45:20 PM UTC-3 [email protected] wrote:
>
>>
>> Hi ,
>>
>> is it possible to sort transcluded /referenced values?
>>
>> so i have tiddler 1 which has 3 fields ,field x , field y and field z
>>
>> field x = 1
>> field y = 2
>> field z= {{!!field x}}{{!! field y}} --> which translates to "12"
>>
>> Now i have the same exact thing happening for 4 or 5 other tiddlers with
>> different values for field x and field y , and field z referencing them
>>
>> now i am doing a list filter , that lists said tiddlers , and putting a
>> sort at the end ..
>>
>> so something like <$list filter= criteria ..... and then towards the
>> end [sort[ field z ]]">
>>
>>
>> The sort is working, i also used nsort with no luck , so is there
>> something i am doing wrong, or referenced values cannot be used as a
>> criteria for a sort ?
>>
>> Thanks in advance
>>
>>
>>
>>
>>
>>
--
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/6710640d-b5fc-4668-bdbf-9e8c4061b624n%40googlegroups.com.