That is amazing Saq!

This is my solution and it works! This way we can write shorter and more
clear codes!

<$vars vv-avgSubfilter="[{!!chemistry}] [{!!math}] +[average[]]">
  <$list filter="[tag[student]sortsub:number<vv-avgSubfilter>]">
    <$link/> - <$text text={{{[subfilter<vv-avgSubfilter>]}}} /><br>
  </$list>
</$vars>


Saq,
 I think it worth adding some more examples to official documentation!


On Tue, May 18, 2021 at 4:48 PM Mohammad Rahmani <[email protected]>
wrote:

> Assume you have filtered a list of tiddlers.
>
>
>    1. For example you list all tiddlers tagged by student
>    2. Each tiddler has two fields:  chemistry and math
>    3. I want sort these tiddler by average value calculates as a =
>    0.5*(math+chemistry)
>
>
> I am looking for one $list or one step listing!
>
>
> Sidenote: I know I can calculate average and prefix to tiddler name
> (a-name) and then sort and display by removing prefixes.
>
>
>
> Best wishes
> Mohammad
>

-- 
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/CAAV1gMAOtsuK8srfbfTqE6rUEAKsvu-gYLWZR3CfdJ%3D1dCytoA%40mail.gmail.com.

Reply via email to