<table><tr> <th> <$button class='tc-btn-invisible' style='width:100%;height:100%'> Plugin name <$action-setfield sort_by='name'/> </$button> </th> <th> <$button class='tc-btn-invisible' style='width:100%;height:100%'> Plugin maintainer <$action-setfield sort_by='maintainer'/> </$button> </th></tr><$list filter='[tag[Plugin twCard]has[name]has[maintainer]sort{!!sort_by}]'><tr> <td> <$view field='name'/> </td> <td> <$view field='maintainer'/> </td></tr></$list></table>\define FilterThingy()
[tag[Plugin twCard]has[name]has[maintainer]$(SortType)$sort{!!sort_by}]
\end
\define ToggleDirection()
<$list
filter='[<currentTiddler>sort_type[!]]'
emptyMessage="""<$action-setfield sort_type='!'/>"""
>
<$action-setfield sort_type=''/>
</$list>
\end
<$set
name=SortType
filter='[<currentTiddler>get[sort_type]]'
>
<table>
<tr>
<th>
<$button
class='tc-btn-invisible'
style='width:100%;height:100%'
>
Plugin name
<$action-setfield
sort_by='name'
/>
<<ToggleDirection>>
</$button>
</th>
<th>
<$button
class='tc-btn-invisible'
style='width:100%;height:100%'
>
Plugin maintainer
<$action-setfield
sort_by='maintainer'
/>
<<ToggleDirection>>
</$button>
</th>
</tr>
<$list
filter=<<FilterThingy>>
>
<tr>
<td>
<$view
field='name'
/>
</td>
<td>
<$view
field='maintainer'
/>
</td>
</tr>
</$list>
</table>
</$set>
now my head hurts and I am going to go lie down. I need to remember to add this to my tables macros sometime.