Issue-47: Daemons are passed to the console in non-deterministic order

DaemonId are now correctly sorted.