HIVE-7659: remove unnecessary sort in RS