What's happening internally is that an array is being sorted first one way 
and then another way in Javascript. Whether the ordering from the first 
sort is retained depends on how the particular browser implements sorting. 
That's why it doesn't work everywhere. I feel kind of relieved -- I knew 
there was some reason I went through all those coding gyrations!

I'm rethinking my suggestion. You can't just append the deadline date and 
the title because the deadline is in UTC. Well, maybe *you* can. That will 
probably work most of the time for you (you're fairly close to the 
international timeline, right?) But it might not quite work right if you 
stay up late or travel abroad. 

To work all the time, your button will need to:

1. List through ToDo and ToDoNow tiddlers, finding a set that each has a 
distinct day (using the each day operator). 
2. Then use those to find the current day (wikifying <$view format=date 
...>, let's call it curDay) . Then 
3. Then inside an inner loop look for all tiddlers with sameday 
4. Then fill in the sortby field with curDay & title.

Steps 1-3 are very close to what I attempted the first time. So it's just 
the last step that's novel.

Good luck!
-- Mark

On Thursday, April 5, 2018 at 1:49:39 PM UTC-7, Surya wrote:
>
> Hi Thomas,
>
> It works :-)
> But only in my browser. I tried it before only on TiddlyDesktop.
> There on TiddlyDesktop it didn't work (that doesn't matter- I decided now 
> that I won't use TiddlyDesktop anymore- toooo slow when I work with several 
> programs).
> But also not on AndTidwiki on my Android. And there I'll use and need the 
> tasklist most...
>
> Hm, and now?
> Should I have to do it like Mark said? No other possibility?
> Or won't Marks suggestion with the additional field "due-title" work on 
> AndTidwiki too?
> Maybe you don't know that and I just have to try... :-(
> Surya
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/24506e05-7203-41fe-aa1f-6cabdec3d290%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to