sortTargets beta
Function of @v12-engine/engine
ts
export declare function sortTargets(world: World, found: Entity[], order: TargetOrder | ((a: Entity, b: Entity) => number), from?: Vec2): Entity[];Sorts what was found in an order (TargetOrder), in place, and gives it: ties by who came into the world first, so the same on every machine. nearest and farthest need the point they measure from