Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Function sortContextsByPriority

    • Sort a map's entries by descending priority, optionally excluding the currently-active context. Passthrough handling applies this ordering to the active context's declared fallback set; contexts outside that route are not consulted.

      Stable for equal priorities (preserves Map insertion order). A missing priority is treated as 0.

      Type Parameters

      Parameters

      • configs: Map<K, V>

        The full set of registered contexts and their configs.

      • OptionalexcludeContext: K

        The currently-active context to skip, or undefined to include all entries.

      Returns [K, V][]

      Entries sorted by priority descending.