<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(data, cols):
 """Sort `data` rows and order columns"""

    return data.sort_values(cols)[cols + ['value']].reset_index(drop=True)