test #136

Merged
klaus merged 2 commits from test into main 2024-02-27 16:16:31 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 2f08149e48 - Show all commits

View File

@ -54,9 +54,9 @@ class NewRouletteService(
oldRepository.deleteById(roulette.creatorId)
}
}
rouletteList.sortedBy { it.id }
return rouletteList.asSequence()
return rouletteList.sortedWith(compareByDescending<NewRoulette> { it.isActive }.thenBy { it.id })
.asSequence()
.map {
GetNewRouletteResponse(
it.id,