Initial support for Group Sorting (only key positions and Reduce operators).
Fixes in TupleComparator and BasicTypeComparator