@@ -76,7 +76,7 @@ declare function app:package-version($node as node(), $model as map(*)) {
76
76
: Load the package version
77
77
:)
78
78
declare function app:package-requires ($node as node (), $model as map (*)) {
79
- let $requires := $model?package/requires[@processor eq "http:// exist-db.org" ]
79
+ let $requires := $model?package/requires[@processor eq $config: exist-processor-name ]
80
80
return
81
81
($requires/@* except $requires/@processor) ! (./name () || ": " || ./string ())
82
82
};
@@ -332,11 +332,11 @@ declare function app:package-group-to-list-item($package-group as element(packag
332
332
<td>
333
333
<ul>{
334
334
(: show links to older versions of the package that are compatible with the requested version of eXist :)
335
- for $package in reverse ( $older-packages)
335
+ for $package in $older-packages
336
336
let $download-version-url := concat ($repoURL, "public/" , $package/@path)
337
337
return
338
338
<li>
339
- <a href = "{$download-version-url} " >{$package/version /string ()}</a>
339
+ <a href = "{$download-version-url} " >{$package/@path /string ()}</a>
340
340
</li>,
341
341
342
342
(: show links to any other version of the package that is compatible with the requested version of eXist,
@@ -383,7 +383,7 @@ declare function app:package-group-to-list-item($package-group as element(packag
383
383
for $change in $newest-package/changelog/change
384
384
let $version := $change/@version /string ()
385
385
let $comment := $change/node ()
386
- order by $version descending
386
+ order by $version descending collation "http://www.w3.org/2013/collation/UCA?numeric=yes"
387
387
return
388
388
<tr>
389
389
<td>{$version}</td>
0 commit comments