How to implement a multiple tree?

Indeed. Put Enum.sort() in the pipe in produce/0 immediately after Enum.map.