Sort contains procedures for sorting data in arrays.
Module | Variables |
---|---|
DEFINITIONS | DP |
None.
There is a single public subroutine in this module.
Subroutine | Purpose |
---|---|
SORT_INTEGER | Sort the values in an integer array into ascending or descending order. |
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. |
Stable.