public function testOrderingMultiplePHPDocExampleButPreservesKeys(\Pinq\ITraversable $traversable, array $data)
{
$traversable = $traversable->orderByDescending(function ($i) {
return $i['volume'];
})->thenByAscending(function ($i) {
return $i['edition'];
});
$this->assertMatches($traversable, [3 => ['volume' => 98, 'edition' => 2], 1 => ['volume' => 86, 'edition' => 1], 4 => ['volume' => 86, 'edition' => 6], 2 => ['volume' => 85, 'edition' => 6], 0 => ['volume' => 67, 'edition' => 2], 5 => ['volume' => 67, 'edition' => 7]]);
}