Change items order in toc not worked

https://tiddlywiki.com/prerelease/static/How%20to%20change%20the%20sort%20order%20of%20sub-branches%20in%20a%20TOC%20macro.html

I check this link. And add a custom field with a value which a value increasingly. But it not change the order, so is it to change the order of the toc item possible?

You are using the equivalent value to sort[2] as sort parameter in toc macro. If you don’t have the field 2 in the tiddlers you can’t ordered them.

See how sort works as parameter in toc macro and how it works as filter operator.
https://tiddlywiki.com/#Table-of-Contents%20Macros:[[Table-of-Contents%20Macros]]%20[[sort%20Operator]]

1 Like

The operand for the sort[...] filter is supposed to be the name of the field containing the values to sort by.

Thus sort[TOCOrder] means “sort by the values contained in the TOCOrder field”

-e

2 Likes