Sorts the inout array based on the quantum numbers of the channels, and returns the permutation array that would produce the same output
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(elec_channel_type), | intent(inout) | :: | elec_channels(:) | |||
| integer, | allocatable | :: | idx(:) |