Helper class for sort() in FlxTypedGroup, but could theoretically be used on regular arrays as well.

Static variables

staticinlineread onlyASCENDING:Int = -1

staticinlineread onlyDESCENDING:Int = 1

Static methods

staticinlinebyValues(Order:Int, Value1:Float, Value2:Float):Int

You can use this function as a backend to write a custom sorting function (see byY() for an example).

staticinlinebyY(Order:Int, Obj1:FlxObject, Obj2:FlxObject):Int

You can use this function in FlxTypedGroup.sort() to sort FlxObjects by their y values.