parent
48d5f1674f
commit
2f08149e48
|
@ -54,9 +54,9 @@ class NewRouletteService(
|
||||||
oldRepository.deleteById(roulette.creatorId)
|
oldRepository.deleteById(roulette.creatorId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rouletteList.sortedBy { it.id }
|
|
||||||
|
|
||||||
return rouletteList.asSequence()
|
return rouletteList.sortedWith(compareByDescending<NewRoulette> { it.isActive }.thenBy { it.id })
|
||||||
|
.asSequence()
|
||||||
.map {
|
.map {
|
||||||
GetNewRouletteResponse(
|
GetNewRouletteResponse(
|
||||||
it.id,
|
it.id,
|
||||||
|
|
Loading…
Reference in New Issue