룰렛 정렬 순서 수정
1순위 - 활성화 된 상태 2순위 - id
This commit is contained in:
		| @@ -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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user