---- keys : list[ArrayLike] | list[Series] Sequence of ndarrays to be sorted by the indexer list[Series] is only if key is not None. orders : bool or list of booleans, optional Determines the sorting order for each element in keys. If a list, it must be the same length as keys. This determines whether the corresponding element in keys should be sorted in ascending (True) or descending (False) order. if bool, applied to all elements as above. if None, defaults to True. na_position : {'first', 'last'}, default 'last' Determines placement of NA elements in the sorted list ("last" or "first") key : Callable, optional Callable key function applied to every element in keys before sorting codes_given: bool, False Avoid categorical materialization if codes are already provided. Returns ------- np.ndarray[np.intp] r