Hi!

I wonder if there is an easy way to obtain the results of a run-query
command in a certain predefined order. In the following example, I would
like to have the Tokens appear in the iterator in the following order:
descending by size and then (for items with the same size) ascending by
name.

(defquery matching-items
  (declare (variables ?d))
  (item-match ?id ?d)
  (item ?id ?name ?size)
  (order-by ?size desc ?name asc)) ; not possible

Would it be possible to add something like this to Jess or is there
another simple way to do this? (Maybe not, because a comparison function
needs to be defined depending on the type of variable?)

Regards,
Michael

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to