IFClite TypeScript API
    Preparing search index...

    Function sortClashes

    • Return a NEW array of clashes ordered by the chosen key. Ties fall back to the stable clash id so the order is deterministic across runs.

      • severity: most severe first, then deepest overlap (the panel default).
      • depth: deepest interpenetration first (#1274 — prioritise real problems).
      • distance: smallest signed distance first (deepest penetration → widest gap).

      Parameters

      Returns Clash[]