HPCC-11089 Add inline functions to expose the alreadySortedLocally flags

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge pull request #5610 from ghalliday/issue11089

HPCC-11089 Add inline functions to expose the alreadySortedLocally flags

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>