doubleToSortableLong
Converts a double value to a sortable signed long. The value is converted by getting their IEEE 754 floating-point "double format" bit layout and then some bits are swapped, to be able to compare the result as long. By this the precision is not reduced, but the value can easily used as a long. The sort order (including ) is defined by Double.compareTo; NaN is greater than positive infinity.
See also
.sortableLongToDouble