How to sort floating point numbers