from typing import Iterable


def const_col(dims: Iterable[int]) -> str:
    """
    Name of an constant columns.

    Parameters
    ----------
    dims
        Dimensions, that describe the column content.

    Returns
    -------
    name: str
        Column name.

    Example
    -------
    >>> from rle_array.testing import const_col
    >>> const_col([1, 2])
    'const_1_2'
    >>> const_col([2, 1])
    'const_1_2'
    """
    dims = sorted(dims)
    dims_str = [str(d) for d in dims]
    return f"const_{'_'.join(dims_str)}"