Given an array of Game Objects and a Pointer, sort the array and return it, so that the objects are in render order with the lowest at the bottom.
name | type | description |
---|---|---|
gameObjects | Array.<Phaser.GameObjects.GameObject> |
An array of Game Objects to be sorted. |
pointer | Phaser.Input.Pointer |
The Pointer to check against the Game Objects. |
The sorted array of Game Objects.