UNPKG

arcade-physics

Version:
24 lines 823 B
/** * @author Richard Davey <rich@photonstorm.com> * @author Angry Bytes (and contributors) * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * 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 * * @function Phaser.Utils.Array.StableSort * @since 3.0.0 * * @param {array} array - The input array to be sorted. * @param {function} [compare] - The comparison function. * * @return {array} The sorted result. */ declare const StableSort: (array: any, compare: any) => any; export { StableSort }; //# sourceMappingURL=StableSort.d.ts.map