diff --git a/DDSim/DD4hepSimulation.py b/DDSim/DD4hepSimulation.py
index e5e288241b7e33fe0fa13c963714f4b827ae00ee..d135b01986bb8e2a1a30fa4b53bae16f358e0019 100644
--- a/DDSim/DD4hepSimulation.py
+++ b/DDSim/DD4hepSimulation.py
@@ -628,10 +628,10 @@ SIM = DD4hepSimulation()
         steeringFileBase += "## %s \n" % "\n## ".join( parameter.__doc__.splitlines() )
         steeringFileBase += "################################################################################\n"
         options = parameter.getOptions()
-        for opt,valAndDoc in options.iteritems():
+        for opt,valAndDoc in sorted( options.iteritems(), sortParameters ):
           parValue, parDoc = valAndDoc
           if parDoc:
-            steeringFileBase += "## %s\n" % "\n## ".join(parDoc.splitlines())
+            steeringFileBase += "\n## %s\n" % "\n## ".join(parDoc.splitlines())
           ## add quotes if it is a string
           if isinstance( parValue, basestring ):
             steeringFileBase += "SIM.%s.%s = \"%s\"\n" %(parName, opt, parValue)