Yeah I tried that one, but I wasn't able to adapt it to my use case. It seems to be easy to adapt for a specific standard sort criteria (title,created,modified...), but isn't clear on how to use it to achieve a manual "list" sort.
On Wednesday, April 25, 2018 at 2:04:07 AM UTC+3, Mark S. wrote: > > OK, there is another way, if you don't mind putting sort criteria in your > tiddlers. See: > > > https://tiddlywiki.com/#How%20to%20change%20the%20sort%20order%20of%20sub-branches%20in%20a%20TOC%20macro > > for details. > > > On Sunday, April 22, 2018 at 3:31:01 PM UTC-7, Mark S. wrote: >> >> I think you would have to re-write the macro. There is a sort argument >> for the macro, but it would get applied at every sub-level so wouldn't be >> useful unless you only have one level of tiddlers. >> >> -- Mark >> >> On Sunday, April 22, 2018 at 1:04:04 PM UTC-7, Fadel M wrote: >>> >>> Thanks for replying! That's a good way to do it. >>> >>> Ah, so there's no way to do it without excluding the unsorted tiddlers >>> from the sort? >>> I can't understand how the default sort does it though. You just have to >>> write the name of the tiddlers you want first in the *list* field, and >>> the rest are automatically sorted by *created*. Is it just that it's a >>> more low level thing than toc macros? >>> >>> Also, while this solution is more than enough for my purposes, I'm >>> curious as to whether there is a way to do it automatically without a >>> button? Perhaps by modifying the way the macro works? >>> >>> On Sunday, April 22, 2018 at 10:29:12 PM UTC+3, Mark S. wrote: >>>> >>>> If you want to use the existing toc macros then you will need to modify >>>> the list field of your root (top) tiddler. Here's an example that >>>> rearranges the default listing for HelloThere on tiddlywiki.com, :-) >>>> putting Examples first, and Discover TiddlyWiki last. >>>> >>>> <$button> <$action-listops $tiddler=HelloThere $field="list" >>>> $filter="Examples [tag[HelloThere]![Examples]![Discover TiddlyWiki]sort[]] >>>> [[Discover TiddlyWiki]]"/> Populate 'myfield' </$button> >>>> >>>> >>>> For your situation, you will need some way to discriminate sorted >>>> tiddlers from non- sorted tiddlers. Then you can use a filter in your >>>> button like >>>> >>>> Tiddler1 Tiddler2 Tiddler3 [tag[sorted]sort[title]] Tiddler200 >>>> >>>> --Mark >>>> On Sunday, April 22, 2018 at 9:32:03 AM UTC-7, Fadel M wrote: >>>>> >>>>> Hi, >>>>> >>>>> From what I understand, the default sort for the table of contents is >>>>> by the *created* field. The *list* field overrides the sort by >>>>> putting the listed tiddler titles on top in listed order. >>>>> >>>>> What I'd like to achieve is to sort the contents by title, but keep >>>>> the ability of the *list* field to prioritize some of the tiddlers. >>>>> I'm not sure how to do this, since I'm not very familiar with the inner >>>>> workings. >>>>> >>>>> The way I imagine it is by populating the *list *field as below >>>>> list: Tiddler1 Tiddler2 Tiddler3 sort[title] Tiddler200 Tiddler300 >>>>> >>>>> But of course, this doesn't work. Could anyone point me in the right >>>>> direction? >>>>> >>>> -- 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/b3dbd43a-965f-4c12-8985-3d620ee5ac43%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

