quemb.shared.helper.argsort¶
- quemb.shared.helper.argsort(seq, key=None)¶
Returns the index that sorts a sequence.
- Parameters:
seq (
Sequence
[TypeVar
(_T_comparable
, bound=SupportsRichComparison
)]) – The sequence to be sorted.key (
Callable
[[TypeVar
(_T_comparable
, bound=SupportsRichComparison
)],SupportsRichComparison
] |None
) – Apply function before comparing. Behaves exactly as the same argument tosorted()
.
- Return type: