Tony this is not a plugin but gets the job done. 

I tag this tiddler with $:/tags/TagDropdown.

\define tagSortFunc(mainTag, order:"ascend")

<$reveal type="match" default="ascend" text=<<__order__>> ><$action-listops  
$tiddler=<<__mainTag__>>  $filter="[tag<__mainTag__>sortan[]]"/></$reveal>
<$reveal type="nomatch" default="ascend" text=<<__order__>> ><$action-listops  
$tiddler=<<__mainTag__>>  $filter="[tag<__mainTag__>!sortan[]]"/></$reveal>

\end

\define sortInTagDropdown()
<$button tooltip="Sort tiddlers A → Z" aria-label="Sort tiddlers A → Z" 
class='tc-btn-invisible'>Sort {{!!title}} tiddlers A → Z<$macrocall 
$name="tagSortFunc" mainTag={{!!title}}/></$button>
<$button tooltip="Sort tiddlers Z → A" aria-label="Sort tiddlers Z → A" 
class='tc-btn-invisible'>Sort {{!!title}} tiddlers Z → A<$macrocall 
$name="tagSortFunc" mainTag={{!!title}} order="no-ascend"/></$button>

\end
<<sortInTagDropdown>>

The result is 

The eject icon is from openall plugin.

This tiddler needs CSS tweaking though.
​

-- 
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/3e27ca7b-36b2-48af-b0a3-b4f5ea73332c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to