HIVE-8618: Add SORT_QUERY_RESULTS for test that doesn't guarantee order #3 (Chao via Xuefu)

git-svn-id: https://svn.apache.org/repos/asf/hive/branches/spark@1634947 13f79535-47bb-0310-9956-ffa450edef68
Merge remote-tracking branch 'upstream/spark' into spark