# searchSort.py
# write a function that sorts a list in place
# without sorting functions

# write a function that searches a list for the
# first occurrence of a given value 
# without using searching functions

"""Functions for searching and sorting."""

def sort(xs):
    """Sort list xs in place into non-descending order"""
    for i in range(0, len(xs) - 1):
        for j in range(i + 1, len(xs)):
            if xs[j] > xs[i]:
               xs[j], xs[i] = xs[i], xs[j]
069cf9a1d4b8b1eb752091ee8d9f304be181af03
<mask token>

<mask token>


def sort(xs):
    """Sort list xs in place into non-descending order"""
    for i in range(0, len(xs) - 1):
        for j in range(i + 1, len(xs)):
            if xs[j] > xs[i]:
                xs[j], xs[i] = xs[i], xs[j]

# searchSort.py
# write a function that sorts a list in place
# without sorting functions

# write a function that searches a list for the
# first occurrence of a given value 
# without using searching functions

"""Functions for searching and sorting."""

def sort(xs):
    """Sort list xs in place into non-descending order"""
    for i in range(0, len(xs) - 1):
        for j in range(i + 1, len(xs)):
            if xs[j] > xs[i]:
               xs[j], xs[i] = xs[i], xs[j]