Merge sort and sort_by_key optimization and bug fixes
Merge pull request #143 from avinashcpandey/develop

Merge sort and sort_by_key optimization and bug fixes