Refactor stable_sort to produce correct answers.
Refactor stable_sort to produce correct answers.

itohiro73/playground,itohiro73/playground,itohiro73/playground,itohiro73/playground,itohiro73/playground,itohiro73/playground