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 #16 from pooya/shayan/sort_encode

Shayan/sort encode