Stable sort
Merge pull request #2 from sim0629/master

Stable sort