tweaked _Sort class
SortReader/Writer fix for multi-key sorts
improved tests