PLAT-6775 Fix test for sorting issues