<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sort_data(x, y):
 """Sort the data."""

    xy = sorted(zip(x, y))
    x, y = zip(*xy)
    return x, y