HPCC-11111 Make use of isXAlreadyLocallySorted()


Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>