[ Sorry, missed your reply. ]
but I think that the merge sort algorithm is inherently stable
But sort doesn't necessarily use merge sort. While it's currently the default, it hasn't always been, and it might not always be.
In reply to Re^6: move all 0s in an array to the beginning keeping other elements order same
by ikegami
in thread move all 0s in an array to the beginning keeping other elements order same
by anilmwr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |