python - 2 lines
\nclass Solution:\n    def getStrongest(self, arr: List[int], k: int) -> List[int]:\n        m = sorted(arr)[(len(arr)-1)//2]\n        return sorted(arr, key=la
```\nclass Solution:\n    def getStrongest(self, arr: List[int], k: int) -> List[int]:\n        m = sorted(arr)[(len(arr)-1)//2]\n        return sorted(arr, key=lambda x: (abs(x-m), x))[-k:]\n```
[]