Sorts Vector so it outputs in key order, as Hadoop expects