Sort Macro Example

Sorting words in a string.

Smartsite SXML CopyCode image Copy Code
<se:text save="text">
    The quick brown fox jumped over the lazy dog
</se:text>
<se:sort inputdata="{string.split(buffer.get(text), ' ')}" sortcolumn="col1">
    <se:parameters>
        <se:parameter name="rowformat">{this.field(1)}</se:parameter>
        <se:parameter name="rowdelimiter"> </se:parameter>
    </se:parameters>
</se:sort>
Example Result CopyCode image Copy Code
brown dog fox jumped lazy over quick The the