Python, using sorted, Custom Sort
\n        # Sort the array to find the median\n        arr.sort()\n        med = arr[(len(arr)-1 )//2 ]\n        \n        # Now sort the array in Descending or
```\n        # Sort the array to find the median\n        arr.sort()\n        med = arr[(len(arr)-1 )//2 ]\n        \n        # Now sort the array in Descending order of values abs(num - med)\n        # If two values are same, use the face value(num)\n\t\t# Choose only the first k values.\n        return sorted(arr, key = lambda num: (abs(num-med), num), reverse = True)[:k]\n        \n```
['Python']