def is_sorted(self, incl_id: bool = False) -> bool: """Check whether records are sorted.""" if incl_id: return nb.is_col_idx_sorted_nb(self.values['col'], self.values['id']) return nb.is_col_sorted_nb(self.values['col'])
def is_sorted(self, incl_id=False): """Check whether mapped array is sorted.""" if incl_id: return nb.is_col_idx_sorted_nb(self.col_arr, self.id_arr) return nb.is_col_sorted_nb(self.col_arr)
def is_sorted(self, incl_id: bool = False) -> bool: """Check whether records are sorted.""" if incl_id: return nb.is_col_idx_sorted_nb(self.col_arr, self.id_arr) return nb.is_col_sorted_nb(self.col_arr)