HPCC-11867 Clean up calls to CStringArray::sort

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