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