On Thursday, March 28, 2019 at 4:04:57 AM UTC-7, S. S. wrote: > > I haven't understood what you mean by "sort[toc-order]" >
The second parameter of the toc-selective-expandable macro uses filter syntax to apply a sort order to the set of tiddler being displayed at each level of the tree. "sort[toc-order]" means "sort the list of tiddlers by the value in the "toc-order" field of each tiddler. Thus, if each tiddler has a "toc-order" field containing a number then when those tiddlers are shown in the tree, they will be sorted based on those numbers. The problem is that tiddlers where the "toc-order" field is missing (or blank or non-numeric) are sorted AFTER the tiddlers that do have a defined value for "toc-order", and Jamie was asking how to get these un-numbered tiddlers to default to being placed BEFORE the sorted ones. Note: for his purposes, Jamie should be using "nsort[toc-order]", which does a NUMERIC sort, rather than an ALPHABETIC sort. With alpha sorting, a sequence of numbers like "1 2 3 10 11 21 22" will be sorted as "1 10 11 2 21 22 3". However, just like the sort[...] filter, nsort[...] also puts missing/blank/non-numeric values at the end of the list. So, although nsort[...] is correct, it still doesn't solve the original problem. -e -- 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/ffd0d0bf-7b7c-4cc7-a2a9-16641d482e6f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

