@spiceErrorCheck<EOL>def shelli(ndim, array):<EOL>
array = stypes.toIntVector(array)<EOL>ndim = ctypes.c_int(ndim)<EOL>libspice.shelli_c(ndim, ctypes.cast(array, ctypes.POINTER(ctypes.c_int)))<EOL>return stypes.cVectorToPython(array)<EOL>
Sort an integer array using the Shell Sort algorithm.

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

:param ndim: Dimension of the array.
:type ndim: int
:param array: The array to be sorted.
:type array: Array of ints
:return: The sorted array.
:rtype: Array of ints