@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Function compileTreeSortExpression

    • Compiles a SortExpression into a comparator for TreeNode objects.

      Like compileSortExpression but reaches into node.data to access the sort key, which is the standard layout for tree datasources.

      Type Parameters

      • T

        The data payload type carried by each tree node.

      Parameters

      Returns (a: { data: T }, b: { data: T }) => number

      A comparator function (a, b) => number operating on tree nodes.