From 29d55769297b52b7890b911e388f5a3ea1f76f74 Mon Sep 17 00:00:00 2001 From: Theo Sanderson Date: Tue, 27 Feb 2024 18:05:20 +0000 Subject: [PATCH] order preprocessing by accession column --- .../backend/service/submission/SubmissionDatabaseService.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/main/kotlin/org/loculus/backend/service/submission/SubmissionDatabaseService.kt b/backend/src/main/kotlin/org/loculus/backend/service/submission/SubmissionDatabaseService.kt index 92d50629f..ca7a25e0f 100644 --- a/backend/src/main/kotlin/org/loculus/backend/service/submission/SubmissionDatabaseService.kt +++ b/backend/src/main/kotlin/org/loculus/backend/service/submission/SubmissionDatabaseService.kt @@ -91,6 +91,7 @@ class SubmissionDatabaseService( .select( where = { table.statusIs(RECEIVED) and table.isMaxVersion and table.organismIs(organism) }, ) + .orderBy(table.accessionColumn) .limit(numberOfSequenceEntries) .map { UnprocessedData(