Skip to content

Commit

Permalink
For #1410: sort by last modification date
Browse files Browse the repository at this point in the history
  • Loading branch information
ebruchez committed Dec 14, 2022
1 parent d45ed12 commit 9091107
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions form-runner/jvm/src/main/resources/apps/fr/landing/landing.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,21 @@
method="get"
serialization="none"
resource="/fr/service/persistence/form?all-versions=false&ignore-admin-permissions=true"
replace="instance"
targetref="instance('fr-landing-form-metadata-instance')">
replace="none">

<xf:action event="xforms-submit-done">
<xf:insert
ref="instance('fr-landing-form-metadata-instance')"
origin="
xf:element('forms',
xxf:sort(
event('response-body')/*/form,
xs:dateTime(last-modified-time),
'text',
'descending'
)
)"/>
</xf:action>
</xf:submission>

<xf:submission
Expand Down

0 comments on commit 9091107

Please sign in to comment.