Skip to content

Commit

Permalink
Ønsker å sortere journalposter etter dato slik at nyeste vises først. (
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnsteingarmo authored Jul 11, 2024
1 parent ef2a135 commit be2ce8d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class JournalpostService(private val safClient: SafClient) {
.efJournalposter()
.filter { it.harRelevanteDokumenter() }
.map { it.tilDto() }
.sortedByDescending { it.dato }

fun hentPdfDokument(
journalpostId: String,
Expand Down

0 comments on commit be2ce8d

Please sign in to comment.