Let's sort events when returned from local function

Events are sorted only when they are loaded with ajax.
Let's make sure we always sort events, even when they come from a local function.