Skip to content

Commit 15f87ac

Browse files
authored
Merge pull request #557 from HistoryAtState/fix-status-sorting
Sort recently published volumes in Status of the Series by date
2 parents d07d5f1 + 15ac478 commit 15f87ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/frus-html.xqm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ declare function fh:list-published-volumes($volumes as element(tei:TEI)*, $year
514514
let $published-chapters := $chapters[@status eq "published"]
515515
let $not-published-chapters := $chapters[@status ne "published"]
516516
let $published-chapters-in-year := $published-chapters[starts-with(@when, $year)]
517+
order by $vol-published/@when, $vol-id
517518
return
518519
if (empty($chapters)) then
519520
<li><a href="$app/historicaldocuments/{$vol-id}">{$vol-title}</a> ({$vol-published-date})</li>

0 commit comments

Comments
 (0)