def bubbleSort(array):
    is_sorted = False
    while not is_sorted:
        is_sorted = True
        current = 1
        for i in range(len(array) - current):
            if array[i] > array[i + 1]:
                is_sorted = False
                array[i], array[i + 1] = array[i + 1], array[i]
        current += 1
    return array

3d9cceaffa58c0d7dd27c192eb5cd2ce33ce194c
<mask token>

def bubbleSort(array):
    is_sorted = False
    while not is_sorted:
        is_sorted = True
        current = 1
        for i in range(len(array) - current):
            if array[i] > array[i + 1]:
                is_sorted = False
                array[i], array[i + 1] = array[i + 1], array[i]
        current += 1
    return array
