Open
Description
There are several places where we call np.sort/argsort/etc.
internally, i.e. not cases where users can specify a sorting kind
like in sort_values
, and use the default unstable kind="quicksort"
In numpy 1.25, it appears that CPUs that can use AVX will have a modified quicksort and recently broke some tests xref #53548 in our numpy dev build where we were testing these unstable sorting results.
Is it worth transitioning to a stable sorting algorithm internally for consistency?
Alternatively we could dynamically transition to use a stable sorting algorithm if duplicate values are being sorted?