Bug 863315 - Refactoring `sdk/event/utils` module to be more consistent with JS

- Inverted the arguments on code and unit test
Merge pull request #952 from ZER0/events-utils/863315

fix Bug 863315 - Refactoring `sdk/event/utils` module to be more consistent with JS r=@erikvold