Here’s a question that I’ve been wondering about for some time.
<div class="tc-table-of-contents":>
<<toc-selective-expandable 'Contents' sort[title]>>
</div>
Edited to format the above as a code block with triple back-ticks. It had been invisible. – Scott Sauyet
Above is a snippet of code that I use for TAB sections on the left of my Tiddlywiky. The bit I’m talking about is sort[title].
My question is…
Is there other ways of sorting the titles under the TABS? Because right now, I’m sorting alphabetically by title. I would like to sort by date submitted instead.
Yes, you can use this technique to sort by any field, and with a little more work, by other synthetic properties. Here’s the simple field version:
<<toc-selective-expandable "Contents" "!sort[modified]">>
Replace modified with your field name. Note that the initial ! reverses the order.
Okay then. Now that I understand the formatting. I would like to use the Date Submitted as the order. How would I go about doing that?
If you would like to see the code I’m using, I’ll provide it as soon as possible.
If you have a field such as date-submitted, just use it where I used modified. If you don’t, then we might need to see your code. Is the wiki public?
Let me try that first if not I’ll give you the URL. And yes it’s public at the moment.