TotalOrderPartitions with sampling example.
SecondarySort example.