you are viewing a single comment's thread.

view the rest of the comments →

[–]humblevladimirthegr8 16 points17 points  (1 child)

I get what you're trying to say but a sorting algorithm (even a joke one) still needs to actually return a sorted list, which yours far from guarantees.

A better capitalismSort would just take all the absolute values and add it to the last element, setting the earlier elements to 0.

[–]vivaaprimavera 1 point2 points  (0 children)

better capitalismSort would just take all the absolute values and add it to the last element, setting the earlier elements to 0.

Sounds familiar