Help with TabsList and Sort

Hi! This is my first post in the forum, and i cannot find the answer (maybe i don’t know how to search) here.

I using Tiddlywiki 5.3.1 and to organize my notes i use the PARA method, it consist in four categories (Projects, Areas, References and Archive).

I have only two right-side tabs, Journal and Contents, inside Contents i have the four categories described before, for this i used this code:

<<tabs tabsList:"[tag[Conteúdo]]" default:"JournalList" class:"tc-vertical">>

And set the order using the list field.

In the journal tab, i used this code

<<list-links "[tag[2023]!sort[title]]">>

But if i tag the journal tiddler with Area tag for example, the sort order is missed. How can i apply the sort in the tabs list?

I have several other tiddlers that i need to sort by the title, like projects, proposals etc.

Thanks in advance!

1 Like

welcome @Hildebrando_Pereira

What is the problem with the order? Have you tried;

  • [tag[2023]
  • [tag[2023]sort[created]] or [tag[2023]!sort[created]]

If you want to sort by journal date the title needs to be a sortable form or;

  • I have some alternative buttons for creating journals with a journal-date field and you can sort on that.

Thank you @TW_Tones!

Here it`s the tab Journal in my Tiddlywiki, sort by title work perfectly here because i use the YYYY-MM-DD format.

But, if i tag journal with the Area tag, the result is the opposite.
(I will post the image in the next reply, it`s a limitation in the forum)

I need to organize in descendent order this tag and others too.

Thanks again!

Are you using the toc macros to do this?

See here https://tiddlywiki.com/#Example%20Table%20of%20Contents%3A%20Sorted%20Expandable

<div class="tc-table-of-contents">
<<toc-expandable "Contents" "sort[title]">>
</div>
  • Do the two tiddlers use the same?
  • You can reverse the order using ! so use !sort[title]

Otherwise please share the code that lists the tiddlers.

Also sometimes (not this time) it makes more sense to use nsort nsort[title] see the various sort operators in Filter Operators

Yes, in the Journal i used

<div class="tc-table-of-contents">

<<toc-selective-expandable "Jornal" "!sort[title]" >>

</div>

The two images above is using this code, the unique difference between their is the tablist, in there i used this code:

<<tabs
  tabsList:"[tag[Conteúdo]]"
  default:"JournalList"
  class:"tc-vertical">>

@TW_Tones

I used the !sort[title] in my Area tab and all tiddlers are inverted, including the sub tags. It’s not a problem for me and worked very well!

Only Area tab are inverted and the other tabs are sorted by title.

Thanks again.