I would like to add sorting via the "filter" proposal we have, see "filters"<br><a href="http://community.jboss.org/wiki/RelationalDataFlows">http://community.jboss.org/wiki/RelationalDataFlows</a><br><br>
Mark<br><br><br><div class="gmail_quote">On Tue, Nov 29, 2011 at 2:31 PM, Wolfgang Laun <span dir="ltr"><<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 29 November 2011 15:17, Davide Sottara <<a href="mailto:dsotty@gmail.com">dsotty@gmail.com</a>> wrote:<br>
> What about a "custom" accumulate function?<br>
><br>
<br>
</div>Then I might as well use init/action/result, as the original poster<br>
did. Also according to him, having it all in DRL is sometimes<br>
preferable. If you have the collection already there (not as the<br>
result of a "from collect" as in my example) a direct transformation<br>
from collection to collection would be preferable.<br>
<br>
But, again, I think this is too rarely needed to warrant a new feature.<br>
<div class="HOEnZb"><div class="h5"><br>
> query "sortedItems"<br>
> $sortedValues: List() from accumulate (<br>
> $f : Fact()<br>
> sortByAnyMethodYouPrefer( $f )<br>
> )<br>
> end<br>
><br>
> We could provide some implementations, even better if incremental.<br>
> In the future, we'll probably provide even better native support for<br>
> this kind of operations.<br>
><br>
> --<br>
> View this message in context: <a href="http://drools.46999.n3.nabble.com/DRL-sorting-Bind-to-eval-result-tp3545246p3545281.html" target="_blank">http://drools.46999.n3.nabble.com/DRL-sorting-Bind-to-eval-result-tp3545246p3545281.html</a><br>
> Sent from the Drools: Developer (committer) mailing list mailing list archive at Nabble.com.<br>
> _______________________________________________<br>
> rules-dev mailing list<br>
> <a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</div></div></blockquote></div><br>