Skip to content

Commit 5b915a5

Browse files
committed
sorting the tags
1 parent 4b5b23f commit 5b915a5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<groupId>org.xqdoc</groupId>
1515
<artifactId>exist-xqdoc</artifactId>
16-
<version>0.5.7</version>
16+
<version>0.5.8</version>
1717

1818
<name>xqDoc Function Documentation</name>
1919
<description>Application and library to generate and display XQuery function documentation for eXist-db</description>

src/main/xquery/xqdoc2openapi-lib.xqm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,16 @@ as map(*)?
135135
}
136136
else ()
137137

138-
let $tags-array := (
138+
let $tags-array := for $tag in (
139139
if (fn:contains(fn:base-uri($function), "/db/apps/"))
140140
then
141141
fn:substring-before(fn:substring-after(fn:base-uri($function), "/db/apps/"), "/")
142142
else (),
143143
for $tag in $function//xqdoc:custom[@tag = 'openapi-tag']
144144
return fn:normalize-space($tag/text())
145145
)
146+
order by $tag
147+
return $tag
146148

147149
let $post-put := $function//xqdoc:annotation[fn:starts-with(@name, "rest:POST") or fn:starts-with(@name, "rest:PUT")]
148150
let $request-body :=

0 commit comments

Comments
 (0)