For anyone interested in living dangerously, here is my first attempt at 
writing a filter. In the filter syntax, it takes the form

sortddmmyyyy[mydatefield]



I have barely tested it, and have no idea what happens if you throw 
incorrectly formatted stuff at it. It wants dates like "dd/mm/yyyy". No 
other separator than /, all 3 fields.

Be *absolutely certain to back up* your TW if you try this.

Mark

On Tuesday, May 17, 2016 at 5:55:08 PM UTC-7, michaelha...@gmail.com wrote:
>
> Having long used TiddlyWiki 5 as a journal, I have lots of tiddlers titled 
> in a dd/mm/yyyy format, such as 29/02/2016.
>
> I am trying to make a list of books I have read, organized by date 
> finished. Here is the code I am using:
>
> <$list filter="[!has[draft.of]tag[reading]sort[finished]]">
> <br/>
> //<$link to={{!!title}}><$view field="title"/></$link>// by <$view 
> field="author"/> | <$link to={{!!began}}><$view field="began"/></$link> - 
> <$link to={{!!finished}}><$view field="finished"/></$link>
>
> </$list>
>
> The title of the book is the title of the tiddler, and my fields are 
> author, began, and finished, which I expect are fairly self explanatory. 
> This code turns my began and finished dates into links that lead to the 
> relevant journal entries. Unfortunately, the list is being organized by 
> day, not year, then month, then day, as seen here:
>
> *Pure* by Andrew Miller | 30/04/2016 - 08/05/2016 
> *The Moonstone* by Wilkie Collins | 18/02/2016 - 29/02/2016 
> *The Beautiful Things That Heaven Bears* by Dinaw Mengestu | 27/04/2016 - 
> 30/04/2016
>
> Does anyone have any suggestions as to how I may adjust the list to 
> display the books in proper chronological order? Thank you.
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/54bc1a05-7092-4d3d-aa86-ccff6a484c39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: Project_sort_ddmmyyyy-v0.json
Description: application/json

Reply via email to