Add a coerce option (or even more generalized transform option) in parameters passed to site endpoints so that they can be used as their proper type/shape from within the Datalog query.
For example:
{:name "sort-order"
:in "query"
:description "The order to sort by"
:required false
:default "asc"
:schema {:type "string"}
:coerce keyword}
so that i can then use it in my datalog query as:
{:find [(pull e [*]) name]
:where [[e :juxt.site.alpha/type "Entity"]
[e :name name]]
:order-by [[name {:in "query" :name "sort-order"}]]}