HPCC-10061 Don't remove subsorts if the input has no known sort order

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