closed #3789: EventDispatcher supports sorting listeners by global Z and local Z order. And adds relevant test case.
Merge pull request #5136 from dumganhar/iss3789-dispatcher-global-z

closed #3789: EventDispatcher supports sorting listeners by global Z and local Z order. And adds relevant test case.