references #90: write all events in one go into the output file and overhaul the lumi-section ordering logic