fix core from keys out of order when dumping
when keys are equal. should fix a core i saw.