BUG: Fix mergesort unstable when ascending=False (GH6399)

closes #6399. I hope I followed all of the correct procedures.

I ran the full test suite (test.sh), and there were no errors.