sort search resutls

This commit is contained in:
Oleg Belyaev 2025-03-30 13:12:26 +03:00
parent abf143eeab
commit 377c9d5b8b

View file

@ -104,6 +104,7 @@ declare function search:content($lang as xs:string,
declare namespace abv = "http://ossetic-studies.org/ns/abaevdict";
.[{$query}]`, {'': $entries}))
for $hit in $hits
order by abv-m:sortKey($hit/tei:form[1]/tei:orth[1]/text())
return
<tr>
<td>