The sorting order mystery!?

39 views
Skip to first unread message

Mat

unread,
Apr 8, 2021, 3:22:49 PM4/8/21
to TiddlyWiki
Copy-past the below code e.g on tiddlywiki.com , and look at it in editor preview and hide the sidebar.

What causes the different sorting orders in the two lists?

I.e when the $:/tags/ViewTemplate has no list content (as deleted with the button), why are the items not equally sorted? Rearranging the links (by dragn'drop) does sort them equally.

What can I do to have both lists in the same order by default? What order is that in the list-tagged-draggable? I see no sorting operator in its code.

Any ideas?

<:-)


$:/tags/ViewTemplate <$button set="$:/tags/ViewTemplate!!list" setTo="">x</$button>

<table>
<tr>
<td style="vertical-align:top">
<$list filter="[all[tiddlers+shadows]tag[$:/tags/ViewTemplate]sortby{$:/tags/ViewTemplate!!list}]">
<$text text={{!!title}}/><br>
</$list>
</td>
<td>
<$macrocall $name="list-tagged-draggable" tag="$:/tags/ViewTemplate"/>
</td>
</tr>
</table>



Reply all
Reply to author
Forward
0 new messages