public static void encodeDimension(double value,byte dest[],int offset){
  NumericUtils.longToSortableBytes(NumericUtils.doubleToSortableLong(value),dest,offset);
}

public static void encodeDimension ( double value , byte dest [ ] , int offset ) { NumericUtils . longToSortableBytes ( NumericUtils . doubleToSortableLong ( value ) , dest , offset ) ; }
encode single double dimension
