Amon wrote:
> Best Hippo's,
>
> Can i do a mix of the <d:score/> and <d:order/> element in the
> orderby clausule of a dasl search?
>
> I tested the following code and it didn't work:
> <d:orderby>
> <d:score/>
> <d:order><d:prop><h:title/></d:prop><d:ascending/></d:order>
> <d:orderby>
Isn't d:score basically treated as if it's a property? In that
case, this should work:
<d:orderby>
<d:order>
<d:prop>
<d:score/>
</d:prop>
<d:ascending/>
</d:order>
<d:order>
<d:prop>
<h:title/>
</d:prop>
<d:ascending/>
</d:order>
<d:orderby>
This means: sort first by score, then (when score is equal) by title.
I haven't tested this, but this is how I think it should work.
mcv.
********************************************
Hippocms-dev: Hippo CMS development public mailinglist