OK this works. This copies the selected text into a temp tiddler, then sorts the text in the temp tiddler. (That returns a title list) Then joins the list with spaces
title: _cpa/ui/EditorToolbar/sort-text tags: $:/tags/EditorToolbar caption: Sort Selected Text condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]] description: Button to sort the selected text icon: $:/core/images/bold text: <$action-sendmessage $message="tm-edit-text-operation" $param="excise" title="$:/temp/sort-text" macro="x" /> <$action-sendmessage $message="tm-edit-text-operation" $param="replace-selection" text={{{ [list[$:/temp/sort-text!!text]sort[]join[ ]] }}} /> -- 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b299e01f-ae84-4a42-9379-771e42ad5052%40googlegroups.com.