A11yTree - v0.2.2
    Preparing search index...

    Function sortByFiberOrder

    • Sorts items by fiber position in the React tree. Items are grouped by React root (roots keep first-listed order); items without a resolvable fiber keep input order, after their group's sorted items.

      Type Parameters

      • T extends { fiber?: Fiber | null }

      Parameters

      • items: readonly T[]

      Returns T[]