def slugify(elements, connector):
    """
    Get a string with all the elements connected by connector
    :param elements: a sequence of elements
    :param connector: a single character serves as a connector between elements
    :return: the connected string
    """
    return connector.join([str(x) for x in sorted(elements)])