Any float type with at least 2 bits* of mantissa and sufficient exponent bits can order those particular values the way you'd expect. Especially since no NaNs are involved.
(*) Maybe 3 or 4. I'd have to pull up some analysis tools to be sure.
Keep in mind that println and such display rounded values, because exact values may not be possible to print in decimal form (in the same way 1/3 isn't possible to print exactly in decimal).