This is a very simple sorting algorithm that sorts an array of numbers by their saturation level.
It's so basic, you'll wonder how it works!