Distinguishes sorted and possibly not sorted operations more accurately in HiveComparisonTest