phaser - v4.0.0-rc.4
    Preparing search index...
    • An in-place stable array sort, because Array#sort() is not guaranteed stable.

      This is an implementation of merge sort, without recursion.

      Function based on the Two-Screen/stable sort 0.1.8 from https://github.com/Two-Screen/stable

      Parameters

      • array: any[]

        The input array to be sorted.

      • Optionalcompare: Function

        The comparison function.

      Returns any[]