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