I just opened issue #3117:

Please compare the descriptions of the parameter of the "sort" and "each" 
operator. They both state:

F = the name of a field, defaulting to title

Nevertheless, the output of these tiddlers is different if you put it into 
a "New tiddler":


<$list filter="[[New Tiddler]] [[test]] +[sort[]]">


</$list>
----
<$list filter="[[New Tiddler]] [[test]] +[each[]]">

</$list>

 

"each" will silently drop "test" as it is not existing and thus has no real 
"title" field, while "sort" will happily sort "test". "sort" will even do 
it when you call it as "+[sort[title]]".

We should resolve inconsistencies like this.

My PR #3116 <https://github.com/Jermolene/TiddlyWiki5/pull/3116> doesn't 
help much in this inconsistency, as it treats "each[]" and "each[title]" 
differently.

My Proposal is to either define that each non-existing tiddler has a title 
field (like "search" does) or that they don't in which case we should treat 
any "operator[]" differently than "operator[title]".

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/dd05c7b1-648b-4dd7-bc9c-1dc76ab277f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to