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