OSC sorting

See the math at the end here: Scaling values