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/ <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 <mohamma...@ <>gmail.com
>> <http://gmail.com/>> wrote:
>>
>> Hi again Jeremy,
>> I have attached the sample tiddlers tested on
>> https://tiddlywiki.com/prerelease/ <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 tiddl...@ <>googlegroups.com <http://googlegroups.com/>.
>> 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]
> <mailto:[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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/D5C776B1-1AD9-4AFE-BDAC-46775780B86B%40gmail.com.