An ordering for
Floats which is a fully consistent total ordering,
NaN as larger than all other
Float values; it behaves
the same as java.lang.Float.compare.
Because the behavior of
Floats specified by IEEE is
not consistent with a total ordering when dealing with
NaN, there are two orderings defined for
TotalOrdering, which is consistent with a total
IeeeOrdering, which is consistent
as much as possible with IEEE spec and floating point
operations defined in scala.math.
This ordering may be preferable for sorting collections.
Creates an Ordering[T] whose compare function returns the
result of this Ordering's compare function, if it is non-zero,
or else the result of
others compare function.
Given f, a function from T into S, creates an Ordering[T] whose compare function returns the result of this Ordering's compare function, if it is non-zero, or else a result equivalent to:
This function is equivalent to passing the result of