STY avoid mangled attributes in has_sorted_indices