Tab Order Tiddler Macro Question

I had this macro I used to use in Tiddlywiki and it used to work great, but then the version of Tiddlywiki changed at some point and now it puts all of them in reverse order. It used to put them in order by the date they were edited. Is there a field I can use to put them in the correct order again?

<$button>
<$set name="whichTiddlerTag" value=<<currentTiddler>> >
<$list filter="[tag<whichTiddlerTag>count[]]">
   <$list filter="[range<currentTiddler>subtract[1]]">
      <$set name="whichTiddler" filter="[tag<whichTiddlerTag>]" select=<<currentTiddler>> >
              <$action-setfield $tiddler=<<whichTiddler>> $field="caption" $value=<<currentTiddler>> />
              <$action-setfield $tiddler=<<whichTiddler>> $field="tooltip" $value=<<whichTiddler>> />
              <$action-setfield $tiddler=<<whichTiddler>> $field="order" $value=<<currentTiddler>> />
    </$set>
</$list>
</$list>
</$set>
Set Tab Order, Tooltips and Captions
</$button>


<<tabs "[tag{!!title}]">>
<<tabs "[tag{!!draft.of}]">>

have you tried +[sort[modified]]

1 Like

I tried something similar with the created field, because if I edit it in the wrong order, it would go out of order.

(I mean if I delete it, that would be bad too, is there a way to manually edit the creation date?)

The creation date of a tiddler is stored in that tiddler’s created field.

The created field is not shown when you edit a tiddler.

But… you CAN change it using “add new field”:

  • In the “field name” input, enter created
  • In the “field value” input, enter a 17-digit TWCore timestamp (YYYYMMDDhhmmssXXX)
  • Press the “add” button to set the field value.

Note: You can also use the same method to manually change a tiddler’s modified field value. However, since that value is automatically updated when you finish editing a tiddler, you also need to turn off the “timestamps are on” setting in the sidebar Tools (before you begin editing the tiddler!) so your manual input isn’t overwritten with the current timestamp.

enjoy,
-e

1 Like