fixed module name in the script
Collections needed to be sorted before being inserted into the EDM event