SortReader supports custom key functions
added SortWriter class
tweaked SortReader and SortWriter
added support for grouping to SortReader
added support for grouping to SortWriter
comment tweaks