<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def maximum(arr, k):
    """ Given an array arr of integers and a positive integer k, return a sorted list of length k with the maximum k numbers in arr. 1. The length of the array will be in the range of [1, 1000]. 2. The elements in the array will be in the range of [-1000, 1000]. 3. 0 <= k <= len(arr) """
    if k == 0:
        return []
    arr.sort()
    ans = arr[-k:]
    return ans
