code: public static char order(IntBuffer buffer) {
          int length = Shape.shapeInfoLength(Shape.rank(buffer));
          return (char) buffer.get(length - 1);
      }
docs: Returns the order given the shape information
  @param buffer the buffer
  @return