|
|
|
@@ -742,6 +742,30 @@ platforms. |
|
|
|
<h4><a name="rcmp.reverse">reverse</a></h4> |
|
|
|
<p>Reverse the natural sort order, or that of a single nested comparator.</p> |
|
|
|
|
|
|
|
<h4>Examples</h4> |
|
|
|
<pre> |
|
|
|
<property name="eol" value="${line.separator}" /> |
|
|
|
<pathconvert property="sorted" pathsep="${eol}"> |
|
|
|
<sort> |
|
|
|
<tokens> |
|
|
|
<string value="foo bar etc baz" /> |
|
|
|
<stringtokenizer /> |
|
|
|
</tokens> |
|
|
|
</sort> |
|
|
|
</pathconvert></pre> |
|
|
|
<p>The resource of type string "foo bar etc baz" is split into four tokens by |
|
|
|
the stringtokenizer. These tokens are sorted and there <i>sorted</i> gets the value |
|
|
|
of "bar baz etc foo".</p> |
|
|
|
|
|
|
|
<pre> |
|
|
|
<sort> |
|
|
|
<fileset dir="foo" /> |
|
|
|
<reverse> |
|
|
|
<date /> |
|
|
|
</reverse> |
|
|
|
</sort></pre> |
|
|
|
<p>This takes all files from <i>foo</i> and sorts it by modification date in reverse order.</p> |
|
|
|
|
|
|
|
</blockquote> |
|
|
|
|
|
|
|
<h4><a name="first">first</a></h4> |
|
|
|
|