AFAIK, there currently is no way to do a multiple sort this way. The last 
sort you invoke will win. In theory you should be able to use two nested 
lists, with the outer list issuing one tiddler per day and the inner list 
finding all tiddlers on the sameday (using the sameday operator). 
Unfortunately, it appears that the sameday operator might be buggy, or 
perhaps the ToDo application doesn't format dates correctly. I'll post my 
code here -- maybe someone can figure out what's wrong.

<$set name="listfilter" value="""[all[]tag[ToDo]][all[]tag[ToDoNow]] 
+[has[todo-deadline]days:todo-deadline[7]eachday[todo-deadline]sort[todo-deadline]]""">
<$set name="listfilter2" 
value="""[tag[ToDo]has[todo-deadline]sameday{!!todo-deadline}] 
[tag[ToDoNow]has[todo-deadline]sameday{!!todo-deadline}] +[sort[]]""">


<ul class="te-list">
<$list filter=<<listfilter>> emptyMessage="<li class='todo-empty'><<telang 
'Relax-Nothing-to-do'>></li>">
<$list filter=<<listfilter2>> >

   <<todonowShowListItem>>

</$list>
</$list>
</ul>

</$set></$set>

The other approach would be to use a button that creates a new field (maybe 
due-title) that concatenates the due date and the title. Then you could 
sort by due-title. The downside is that you have to update the fields 
before doing your listing.

Good luck!
Mark


On Thursday, April 5, 2018 at 7:22:42 AM UTC-7, Surya wrote:
>
> Hi,
>
> I use the plugin ToDoNow (https://tid.li/tw5/tdn.html) and added a 
> tiddler for showing me the overdue tasks and the tasks for today and the 
> next seven days with:
> <$set name="listfilter" value="""[all[]tag[ToDo]][all[]tag[ToDoNow]] 
> +[days:todo-deadline[7]sort[todo-deadline]]""">
>
> <ul class="te-list">
> <$list filter=<<listfilter>> emptyMessage="<li class='todo-empty'><<telang 
> 'Relax-Nothing-to-do'>></li>">
>    <<todonowShowListItem>>
> </$list>
> </ul>
>
> </$set>
>
>
> Now I'd like to additionally sort the tasklist by title. It should be 
> sorted at first by todo-deadline and then by title.
> I tried it with
> <$set name="listfilter" value="""[all[]tag[ToDo]][all[]tag[ToDoNow]] 
> +[days:todo-deadline[7]sort[title]sort[todo-deadline]]""">
>
> <ul class="te-list">
> <$list filter=<<listfilter>> emptyMessage="<li class='todo-empty'><<telang 
> 'Relax-Nothing-to-do'>></li>">
>    <<todonowShowListItem>>
> </$list>
> </ul>
>
> </$set>
>
> But that doesn't work.
>
>
> I tried to combine in different ways the original with this
>
> <ul> <$list filter="[tag[Composers]each[surname]get[surname]sort[]]" 
> variable="name"> <$list 
> filter="[tag[Composers]surname<name>sort[middlename]sort[givenname]]"> <li> 
> <$link> <$view field="surname"/>, <$view field="givenname"/> <$view 
> field="middlename"/> </$link> </li> </$list> </$list> </ul>
>
> But they also didn't work.
>
>
> How can I write it, that the double sort works?
>
> Do you know any help for this?
> Thanks :-) 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/0c3eb8a1-6bbf-4aab-9bdb-873ad57c65e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to