I am still wondering why the following query doesn't work:

query sortFactsQuery1
        $tm: TreeMap()
                from accumulate( $f: Fact(),
                     init( TreeMap map = new TreeMap(); ),
                   action( map.put(factKey($f), $f); ),
                   reverse( map.remove(factKey($f)); ),
                   result( map ) )
    $sortedFacts: Collection() from $tm.values()
end

--
View this message in context: 
http://drools.46999.n3.nabble.com/facts-custom-sort-tp3538410p3554200.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to