SE-1320 sort result before comparing to avoid flapping tests