diff --git a/dev/tests/integration/testsuite/Magento/Framework/Search/Adapter/Mysql/AdapterTest.php b/dev/tests/integration/testsuite/Magento/Framework/Search/Adapter/Mysql/AdapterTest.php
index f378bb929e0aaddb26a649b91afdf5b056b1b857..619996d9efcf8cc6bdced2abda23eb728c8071ad 100644
--- a/dev/tests/integration/testsuite/Magento/Framework/Search/Adapter/Mysql/AdapterTest.php
+++ b/dev/tests/integration/testsuite/Magento/Framework/Search/Adapter/Mysql/AdapterTest.php
@@ -276,6 +276,7 @@ class AdapterTest extends \PHPUnit_Framework_TestCase
             /** @var \Magento\Framework\Search\Document $document */
             $actualIds[] = $document->getId();
         }
+        sort($actualIds);
         $this->assertEquals($expectedIds, $actualIds);
     }