From 377c9d5b8bda2895fca91d22fe62f785fbb020e7 Mon Sep 17 00:00:00 2001 From: Oleg Belyaev Date: Sun, 30 Mar 2025 13:12:26 +0300 Subject: [PATCH] sort search resutls --- xq/site/components/search.xqm | 1 + 1 file changed, 1 insertion(+) diff --git a/xq/site/components/search.xqm b/xq/site/components/search.xqm index 3561302..4113210 100644 --- a/xq/site/components/search.xqm +++ b/xq/site/components/search.xqm @@ -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