Synopsis

void mth_SortDouble(int dir, long nval, double *vals)

Purpose

Sort an array of double values in ascending/descending order.

Description

Sorts an array of double values in either ascending or descending order.

Input

dir

Direction option .br 1 = ascending .br 2 = descending

nval

The number of values to be sorted

vals

The array of double values to be sorted

Output

vals

The sorted array of double values