class OrderedDoubleSerialiser implements ToBytesSerialiser<Double> {

    @Override
    public byte[] serialise(final Double object) {
        long l = Double.doubleToRawLongBits(object);
        if (l < 0) {
            l = ~l;
        } else {
            l = l ^ 0x8000000000000000L;
        }
        return LONG_SERIALISER.serialise(l);
    }

}