But perhaps I’m not understanding your question, since you refer to “another” date field… are you talking about a complex sort, where a second field controls the sort order for tiddlers that share the main/primary date for the timeline?
Nope, I don’t know where to insert the dateField into @Mohammad’s timeline format so that the timeline can be sorted on the created date. Has anyone else done this?
The first line of the macro definition tiddlers sets the default to “modified”, you can changes these two tiddlers or clone and generate your own unique macro name:
Full disclosure - I’m a complete noob in terms of understanding this stuff but I don’t think that works as far as I can see. However, fully prepared to be corrected!
Using the demo/timeline-vertical/primary tiddler at Kookma’s site, changing the “modified” date to “created” in the macro, alters the date displayed vertically on the left as can be seen in the screenshots.
In the second screenshot, I’ve added the date sort and this works because each tiddler has a field called “date” - but what I want to do is sort the tiddlers on their created date.
What puzzles me is that sorting by the created date would seem to be a default choice (why would each tiddler have a manually added date field?) so I feel like I must be missing something glaringly obvious.
If no date is supplied in the macro, it defaults to “modified”. you can override that behavior by providing date input. Here are three examples: default, created and userdate. It doesn’t appear to support reverse sort.
What threw me is that when changing from modified to created, I was expecting the order of the quotes in the example to change - they don’t because the created dates for each are identical!
However, I need the most recent entries on my timeline first (by created date rather than user date) so it is the reverse sort order I want.
The macro has a sort built in which is why your reverse sort filter wasn’t working. You could tweak the macro to always reverse sort. I see that handling reverse sort is on the (Timelines 1.3.0 — a graphical representation of a period of time) for timelines…
Changed <$list filter="[subfilter<__filter__>] :sort:date[get<__date__>] section in the macro to <$list filter="[subfilter<__filter__>] :sort:date:reverse[get<__date__>]