47
47
that have significant sections that were partially ordered before
48
48
the sort;
49
49
* ` SORT_ADJOINT ` is based on ` ORD_SORT ` , but in addition to sorting the
50
- input array, it returns a related array re-ordered in the
51
- same way ;
50
+ input array, it re-orders a second array of the same size
51
+ according to the same permutations ;
52
52
* ` SORT_INDEX ` is based on ` ORD_SORT ` , but in addition to sorting the
53
53
input array, it returns indices that map the original array to its
54
54
sorted version. This enables related arrays to be re-ordered in the
@@ -149,7 +149,7 @@ The `SORT` and `ORD_SORT` subroutines can sort rank 1 isolated
149
149
arrays of intrinsic types, but do nothing for the coordinated sorting
150
150
of related data, e.g., a related rank 1 array. Therefore the module
151
151
provides a subroutine, ` SORT_ADJOINT ` , that re-order such a rank 1 array
152
- in the same way as the input array based on the ` ORD_SORT ` algorithm,
152
+ according to the same permutations as for the input array based on the ` ORD_SORT ` algorithm,
153
153
in addition to sorting the input array.
154
154
155
155
The logic of ` SORT_ADJOINT ` parallels that of ` ORD_SORT ` , with
@@ -405,7 +405,8 @@ element of `array` is a `NaN`.
405
405
{!example/sorting/example_radix_sort.f90!}
406
406
```
407
407
408
- #### ` sort_adjoint ` - sorts an associated array in the same way as the input array, while also sorting the array.
408
+ #### ` sort_adjoint ` - sorts an associated array
409
+ according to the same permutations as for the input array.
409
410
410
411
##### Status
411
412
@@ -415,7 +416,7 @@ Experimental
415
416
416
417
Returns the input ` array ` sorted in the direction requested while
417
418
retaining order stability, and an associated array whose elements are
418
- sorted in the same way as the input ` array ` .
419
+ sorted according to the same permutations as for the input ` array ` .
419
420
420
421
##### Syntax
421
422
0 commit comments