def bubble_sort_ascii(collection: list) -> list:
    """
    contoh
    >>> bubble_sort_ascii([0, 5, 2, 3, 2])
    [0, 2, 2, 3, 5]
    >>> bubble_sort_ascii(['c', 'a', 'd', 'b', 'e'])
    ['a', 'b', 'c', 'd', 'e']
    >>> bubble_sort_ascii(['b', 3, 'a', '!', 2, 'c'])
    ['!', 2, 3, 'a', 'b', 'c']
    >>> bubble_sort_ascii([0, 5, 2, 3, 2]) == sorted([0, 5, 2, 3, 2])
    True
    """
    panjang = len(collection)

    for i in range(panjang - 1):
        for j in range(panjang - 1 - i):
            if str(collection[j]) > str(collection[j + 1]):
                collection[j], collection[j + 1] = collection[j + 1], collection[j]
    return collection