src/Collection/SortedTable.php
public static function create(
        Comparator $comparator,
        ?string $keyType = null,
        ?string $valueType = null
    ): SortedTable {
        return new static($comparator, $keyType, $valueType);
    }
public static function create(
        Comparator $comparator,
        ?string $keyType = null,
        ?string $valueType = null
    ): SortedTable {
        return new static($comparator, $keyType, $valueType);
    }
public static function create ( Comparator $ comparator , ? string $ keyType = null , ? string $ valueType = null ) : SortedTable { return new static ( $ comparator , $ keyType , $ valueType ) ; }
Creates collection with a custom comparator

If types are not provided, the types are dynamic.

The type can be any fully-qualified class or interface name,
or one of the following type strings:
[array, object, bool, int, float, string, callable]

@param Comparator  $comparator The comparator
@param string|null $keyType    The key type
@param string|null $valueType  The value type

@return SortedTable
Creates collection with a custom comparator