From e162aec52034d4f6078f08815d383acbc4a172d5 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Mon, 23 Mar 2026 11:50:19 +0100 Subject: fix: filtered requests sort order DESC (#274) --- src/main/kotlin/dev/dnpm/etl/processor/services/RequestService.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/kotlin/dev/dnpm') diff --git a/src/main/kotlin/dev/dnpm/etl/processor/services/RequestService.kt b/src/main/kotlin/dev/dnpm/etl/processor/services/RequestService.kt index ba33fd6..eb57a6c 100644 --- a/src/main/kotlin/dev/dnpm/etl/processor/services/RequestService.kt +++ b/src/main/kotlin/dev/dnpm/etl/processor/services/RequestService.kt @@ -100,6 +100,7 @@ class RequestService(private val requestRepository: RequestRepository) { fun List.filter(filter: RequestService.Filter, pageable: Pageable): Page { return this .toList() + .sortedByDescending { it.processedAt } .filter { it.type == RequestType.MTB_FILE && sequenceOf(RequestStatus.SUCCESS, RequestStatus.WARNING).contains(it.status) -- cgit v1.2.3