Minor cleaning of code.
Handle special case of floating point numbers. Example cases are 1.1 and 1.01, where 1.01 should appear first in order.