In database theory, one of the central tenets is to use each field to do only one thing. TW already breaks this by using the Title field for a title and an ID. Now you want to also use it for a date field.
Why not extract the dates and put them in their own date field (e.g. actiondate). Then you can sort on that field. This has the additional benefit of not breaking any existing links. Mark On Monday, September 18, 2017 at 9:41:41 PM UTC-7, JWHoneycutt wrote: > > I realistically have a thousand tiddlers with titles like: > > - Foo Bar meeting 2016-9-12 > - Quarterly staff meeting 2017-04-22 > - 2017-07-21 Department Huddle > > Of note: all dates start with the character string "201" > > I am interested in renaming them with the date in the front of the title, > so that I can "!sort[]" them in filters, easily giving me the most recent > ones at the top of the list. > *How do I accomplish this?* My guess is: > > 1. Filter for all tiddlers whose title ends in a date (must allow for > optional 1 character months and days) (changing dates to add zeros was > done > by Stephan Hradek in this thread: > https://groups.google.com/forum/#!topic/tiddlywiki/eTbODCaTuYk) > 2. Use the fieldmangler widget to modify the field named "title" > 3. First I need to capture the date as a variable > 4. Change the value of the field(title) by removing the date from the > end (somehow using "suffix") > 5. Change the value of the field(title) by adding the same date to its > beginning followed by a single space (somehow using "prefix" - maybe both > functions can be done in one step?) > 6. Move onto the next tiddler in the filtered output of step #1 > > Is this line of thinking the easiest way to accomplish this (based on my > early understanding of TW5)? > -- 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/637e943e-2285-4fee-a39b-4af33f37f6de%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

