BUG: Fix for GH6399, mergesort is unstable when ascending=False

BUG: Fix for GH6399, mergesort is unstable when ascending=False. Update changes