Hi Jeremy,
 I confirm the test example now works on https://tiddlywiki.com/prerelease/

Many thanks.

Cheers
Mohammad

On Saturday, April 25, 2020 at 6:54:29 PM UTC+4:30, Jeremy Ruston wrote:
>
> Hi Mohammad,
>
> I’ve pushed an update that switches to evaluating the subfilter once for 
> each input item, setting the currentTiddler variable for each evaluation. 
> This makes the expression [{!!value}divide{!!cost}] work properly. It’s a 
> bit slower, but definitely more useful.
>
>
> https://github.com/Jermolene/TiddlyWiki5/commit/ad575efdcc4d03f9d09bf72defe0e8146164d34f
>
> The update will be available on https://tiddlywiki.com/prelease in a few 
> minutes (you can check on build progress here: 
> https://travis-ci.org/github/Jermolene/TiddlyWiki5/builds)
>
> Best wishes
>
> Jeremy
>
> On 25 Apr 2020, at 14:42, Mohammad <[email protected] <javascript:>> 
> wrote:
>
> Jeremy,
>  Many thanks for clarification! Got the point!
>
> Cheers
> Mohammad
>
> On Saturday, April 25, 2020 at 6:03:50 PM UTC+4:30, Jeremy Ruston wrote:
>>
>> Hi Mohammad
>>
>> The reason we were getting different results is because I had built the 
>> index.html I was using on my Mac, whereas you were using the online version 
>> that had been built on servers run by TravisCI. Those two environments end 
>> up putting the tiddlers into the HTML file in a different order, which was 
>> the ordering we were seeing.
>>
>> The problem is my fault: I gave the expression 
>> [get{!!value}divide{!!time}] without testing it, and it won’t work in this 
>> context because it relies on the current tiddler. The trouble is that this 
>> filter is run once to convert every list item into the corresponding sort 
>> key. We can only set the current tiddler to a single value for that run of 
>> the filter, so it clearly can’t address every tiddler in the input set.
>>
>> The solution is to use the get operator to retrieve the field values from 
>> each item that is passed into the filter. Hence the examples in the docs 
>> such as [get[text]else[]length[]] not being written as [{!!text}length[]].
>>
>> The problem here is that we need to retrieve both field values, which 
>> can’t currently be done. We can do [get[cost]divide[23]] but nothing that 
>> will divide [get[cost]] by [get[value]].
>>
>> So, it turns out that at this point the subsort operator doesn’t actually 
>> meet the requirement in the OP. I’ll give it some thought.
>>
>> Best wishes
>>
>> Jeremy
>>
>> On 25 Apr 2020, at 14:13, Mohammad <[email protected]> wrote:
>>
>> Strangely NO! 
>> I see Engineer, Doctor, Designer. I testing online on 
>> https://tiddlywiki.com/prerelease/
>>
>>
>> <Slide-37.png>
>>
>>
>> On Saturday, April 25, 2020 at 5:30:51 PM UTC+4:30, Jeremy Ruston wrote:
>>>
>>> Hi Mohammad,
>>>
>>> Thank you, that’s helpful. I’m seeing the result Designer, Doctor, 
>>> Engineer, is that not what you are seeing?
>>>
>>> Best wishes
>>>
>>> Jeremy
>>>
>>>
>>>
>>> On 25 Apr 2020, at 13:58, Mohammad <[email protected]> wrote:
>>>
>>> Hi again Jeremy,
>>>  I have attached the sample tiddlers tested on 
>>> https://tiddlywiki.com/prerelease/
>>>  using the new *sortsub*
>>>
>>> --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/f1c1af1d-9575-40f5-9081-22142c4ce070%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/tiddlywiki/f1c1af1d-9575-40f5-9081-22142c4ce070%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> <test-new-sortsub.json>
>>>
>>>
>>>
>> -- 
>> 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/559e5dee-7a42-4dfd-a688-d71f8f3b1770%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/559e5dee-7a42-4dfd-a688-d71f8f3b1770%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> <Slide-37.png>
>>
>>
>>
> -- 
> 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] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/ec65706c-bffe-44ba-aa73-be609f65c20a%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/ec65706c-bffe-44ba-aa73-be609f65c20a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
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/42f8c9d3-9ba1-4d37-8c73-9aedd0183f41%40googlegroups.com.

Reply via email to