Hi Howard The sort filter operator operates on the raw text of a field, not on the output from wikifying the field. We could add a wikified sort operator but it would be an order of magnitude slower than a raw text search and so I wouldn't be keen.
What else do you want to do with the concatenated values besides displaying them and sorting by them? Do they correspond to the titles of tiddlers, for example? Best wishes Jeremy On Thu, Jun 5, 2014 at 5:24 PM, HowardM <[email protected]> wrote: > I have a list widget with the filter sorting by a field which contains > just a Javascript macro call of the form <<macroname>>. I can sort > successfully by any other field and transclude the macro field within the > list widget, but sorting by the macro field gives a sort by title. > > The situation is fairly simple - I have a set of tiddlers for areas and a > set for actions. One of the action fields contains the title of an area > tiddler and I want to pick up the value of a field for this area (always > the same field) and concatenate it with an action field. Each of the two > fields concatenated contains one alphanumeric character, the area titles > are one upper case letter. I use the macro to carry out the > concatenation. When I transclude the macro field into any tiddler (not > just the tiddler it belongs to), I get the right result - the only problem > is using it to sort. > > I only got as far as testing the approach, so have only put the macro > field into a few action tiddlers. I stripped down what I was doing to try > to find the root of the problem but even the following simple filter > ('fullorder' is the macro field) gives a sort by title, though it does show > all the relevant tiddlers & their macro field values: > > <$list > filter="[has[fullorder]sort[fullorder]]">{{!!title}}-{{!!fullorder}} > </$list> > > The macro is also straightforward with its operational part consisting of > just: > > exports.run = function( ) { > return "<$transclude tiddler={{!!areacode}} field='stage'/><$transclude > field='order'/>";}; > > > I would appreciate advice on ways of achieving the result I want, either > by modifying my current approach or by a different route. > > -- > 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 http://groups.google.com/group/tiddlywiki. > For more options, visit https://groups.google.com/d/optout. > -- Jeremy Ruston mailto:[email protected] -- 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 http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

