def orderd(array, ndim=None):
    """
    Determine the order of elements in a double precision array.

    http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/orderd_c.html

    :param array: Input array.
    :type array: Array of floats
    :param ndim: Optional Length of input array
    :type ndim: int
    :return: Order vector for array.
    :rtype: array of ints
    """
    if ndim is None:
        ndim = ctypes.c_int(len(array))
    else:
        ndim = ctypes.c_int(ndim)
    array = stypes.toDoubleVector(array)
    iorder = stypes.emptyIntVector(ndim)
    libspice.orderd_c(array, ndim, iorder)
    return stypes.cVectorToPython(iorder)
Determine the order of elements in a double precision array.

    http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/orderd_c.html

    :param array: Input array.
    :type array: Array of floats
    :param ndim: Optional Length of input array
    :type ndim: int
    :return: Order vector for array.
    :rtype: array of ints