Physics.P2.BodyDebug#customSort()

customSort(sortHandler, context)

Sort the children in the group according to custom sort function.

The sortHandler is provided the two parameters: the two children involved in the comparison (a and b).
It should return -1 if a > b, 1 if a < b or 0 if a === b.

Parameters
Name Type Argument Description
sortHandler function

The custom sort function.

context object <optional>

The context in which the sortHandler is called.

Inherited From
Source code: core/Group.js (Line 1895)
doc_phaser
2017-02-14 11:03:09
Comments
Leave a Comment

Please login to continue.