SORT


Function

Sort contains procedures for sorting data in arrays.

Dependencies

Module Variables
DEFINITIONS DP


Public Variables

None.

Public Procedures

There is a single public subroutine in this module.

SubroutinePurpose
SORT_INTEGER Sort the values in an integer array into ascending or descending order.


SORT_INTEGER

Argument Type Intent Optional Purpose
X Integer(:) InOut No The integer array whose data is to be sorted.
Y Integer(1:SIZE(X)) InOut Yes An integer array whose elements are to be put in the same order as those of X.
ASCENDING Logical In Yes A flag to indicate whether the data is to be sorted in ascending or descending order.




Stability

Stable.



Back to the DYNAMO Home-Page.