bitmovin-player-ui
    Preparing search index...

    Type Alias ListItemComparator

    ListItemComparator: (listItemA: ListItem, listItemB: ListItem) => number

    Comparator function to define a custom display order for list items.

    Follows the same contract as Array.prototype.sort.

    Type Declaration

      • (listItemA: ListItem, listItemB: ListItem): number
      • Parameters

        • listItemA: ListItem

          the first item to compare

        • listItemB: ListItem

          the second item to compare

        Returns number

        negative when A should come first, positive when B should come first, 0 if equal