Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Absolute Sorting by chandyk
def checkio(numbers_array: tuple) -> list:
return sorted(numbers_array, key = abs)
#These "asserts" using only for self-checking and not necessary for auto-testing
if __name__ == '__main__':
print('Example:')
print(list(checkio((-20, -5, 10, 15))))
June 9, 2019
Comments: