Add a minimal test for failing sort.
Fix an issue with disk_sort and sort_reader.
Add a python unittest for the new functionality.
Merge pull request #376 from pooya/shayan/upstream_sort_reader

Shayan/upstream sort reader