Fixed issue causing LongTermsTests to fail where required sort order of final results not respected