#if !defined(PS_SORT_H)
#define PS_SORT_H

/** \file psSort.h
 *  \brief general sorting operations
 *  \ingroup MathGroup
 */

/** Functions **************************************************************/
/** \addtogroup MathGroup Math Utilities
 *  \{
 */

/** Sort an array. Inputs not restrict-ed to allow sort in place */
psVector *
psSort(psVector *out,			///< Sorted array to return. May be NULL
       const psVector *in)		///< Array to sort
;

/** Sort an array, along with some other stuff.  Returns an index array */
psVector *
psSortIndex(psVector *out,		///< Output index array (may be NULL)
	    const psVector *in)		///< Array to sort
;

/* \} */ // End of MathGroup Functions

#endif
