Sort the events collection by dateBegin, dateEnd, and aventName

result = queryEngine.createCollection(events)
        .sortCollection({"dateBegin", "dateEnd", "aventName"})
        .toJSON()

Then json2yaml and finally linted with http://www.yamllint.com/