numbers = [-1, 5, 3, -4, 100, 6]
sorted_by_abs = sorted(numbers, key=abs)
print(sorted_by_abs)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: