# Synopsis

void mth_SortInteger(int dir, long nval, int *vals)

# Purpose

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

# Description

Sorts an array of integer 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 integer values to be sorted

# Output

## vals

The sorted array of integer values