Sort test results for consistent order.