예제 #1
0
 public function testSortField2()
 {
     $array = [1 => ['order' => 3], 2 => ['order' => 2], 3 => ['order' => 1]];
     $a = new ArrayObject($array);
     $a->sortField('order', SORT_DESC);
     $this->assertSame($array, $a->val());
 }