Skip to content

Commit

Permalink
Adjust mapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvind-wedoe committed Sep 14, 2023
1 parent 7d2f067 commit 5f35260
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ class DokumentMapper(
it.getType() != DokumentUnderArbeid.DokumentUnderArbeidType.JOURNALFOERT
}

return dokumenterUnderArbeid.map { mapToDokumentView(it) }
.sortedBy { it.created } + journalfoerteDokumenterUnderArbeid.map { mapToDokumentView(it) }
return dokumenterUnderArbeid.sortedBy { it.opplastet }
.map { mapToDokumentView(it) } + journalfoerteDokumenterUnderArbeid.map { mapToDokumentView(it) }
.sortedBy { it.journalfoertDokumentReference?.datoOpprettet }
}

Expand Down

0 comments on commit 5f35260

Please sign in to comment.