HPCC-11867 Clean up calls to CStringArray::sort

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
It may be to ensure order of e.g.

/a/b/c
/a/b
/a