Let's sort events when returned from local function
Merge pull request #137 from Serhioromano/sort-events-even-for-function

Let's sort events when returned from local function