Other reactive libraries like project reactor offer sort methods for Publishers but there is no such method in mutiny. Their documentation doesn't even talk about it.
Right now i'm achieving the said functionality by doing this
multi.collectItems()
.asList()
.map(
list -> {
list.sort();
return list;
})
.convert()
.with(listUni -> Multi.createFrom().iterable(listUni.await().indefinitely()))
Is there a better way to do the same ?