So, i have solved it. The key was to look into \Symfony\Component\DomCrawler\Crawler class. It has a lot of useful methods like first(), last() or eq($number). I have created this helper method in my TestCase class:
public function seeInFirstElement($selector, $text)
{
$this->assertContains($text, trim($this->crawler->filter($selector)->first()->text()));
return $this;
}
You can get rid of trim() function but with it the output looks better in case of failed test.
So, in my tests I use such constructions to test ordering:
$this->seeInFirstElement('.test-class', 'Value1');