Sort the callback array before executing
Sort the callback array before executing

If the array is not sorted based on numeric keys, the callbacks will be
executed in order they were added to the array. Not the behaviour we
want.

slax0rr/BaseController,slax0rr/BaseController