def checkio(numbersarray: tuple) -> list: result = sorted(numbersarray, key=abs(range(numbers_array))) return result
5
2
7