Is it possible to use the pull api combined with :order-by?
If I try something like this:
(d/q
'[:find [(pull ?eid [:db/id :person/name]) ...]
:where [?eid :person/name ?name]
:order-by [?name :asc]]
(d/db conn)
I get the error There are :order-by variable that is not in :find spec which is understandable, but I dont find a way to add ?name to the :find spec. And if I sort by ?eid the query is successful, but the data isn’t sorted.
If I try something like this:
(d/q
'[:find ?eid ?name
:keys person-id person-name
:where [?eid :person/name ?name]
:order-by [?name :asc]]
(d/db conn))
the query is successful, but the data isn’t sorted. Without :keys the data is sorted.
Are these bugs or did I make a mistake?Thank you very much!