HPCC-11078 Generate isRightAlreadySorted for global joins

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>