This TiddlyWiki <http://list-test.tiddlyspot.com/> is an example of a bug
in the tagged tiddler sorting algorithm
<https://tiddlywiki.com/#Order%20of%20Tagged%20Tiddlers>. I created 4
tiddlers: New Tiddler <http://list-test.tiddlyspot.com/#New%20Tiddler>, New
Tiddler 1 <http://list-test.tiddlyspot.com/#New%20Tiddler%201>, New Tiddler
2 <http://list-test.tiddlyspot.com/#New%20Tiddler%202>, and New Tiddler 3
<http://list-test.tiddlyspot.com/#New%20Tiddler%203> tagging this tiddler.
Now I use the <$list> widget to show a list of these tiddlers:
<ol>
<$list filter="[is[current]tagging[]]">
<li>
<$link to=<<currentTiddler>>>{{!!title}}</$link>
<$list filter="[is[current]has[list-before]]">list-before:
{{!!list-before}}</$list>
<$list filter="[is[current]has[list-after]]">list-after:
{{!!list-after}}</$list>
</li>
</$list>
</ol>
This code also shows list-before and list-after fields if they are present.
Now I want the <$list> widget to show the tiddlers in the reverse order. So
I created an empty field list-before in New Tiddler 3
<http://list-test.tiddlyspot.com/#New%20Tiddler%203> to list New Tiddler 3
<http://list-test.tiddlyspot.com/#New%20Tiddler%203> at the top and added
list-after fields to New Tiddler 2
<http://list-test.tiddlyspot.com/#New%20Tiddler%202> and New Tiddler 1
<http://list-test.tiddlyspot.com/#New%20Tiddler%201> respectively. The
result is below:
1. New Tiddler 3 <http://list-test.tiddlyspot.com/#New%20Tiddler%203>
2. New Tiddler <http://list-test.tiddlyspot.com/#New%20Tiddler> list-after:
New
Tiddler 1
3. New Tiddler 1 <http://list-test.tiddlyspot.com/#New%20Tiddler%201>
list-after: New
Tiddler 2
4. New Tiddler 2 <http://list-test.tiddlyspot.com/#New%20Tiddler%202>
list-after: New
Tiddler 3
Apparently, list-after field does not work in this case as advertised. This
behavior is not consistent. In this example
<http://list-test.tiddlyspot.com/#Another%20ListTest>, the list-after field
works properly. The failure has something to do with the chain of list-after
fields.
I was trying this on a list of 11 tiddlers, and some tiddlers were ordered
properly, and some were not.
By the way, the filter [is[current]has[list-before]] does not show the
empty list-before value in New Tiddler 3
<http://list-test.tiddlyspot.com/#New%20Tiddler%203> although, technically, New
Tiddler 3 <http://list-test.tiddlyspot.com/#New%20Tiddler%203> *has* the
list-before field.
--
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/016af997-7af4-4971-86b7-8c572adfaa08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.