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