public function sort () 
    {
        parent::sort();
        Helper::mapMethod($this->_records, 'sort');
        usort($this->_records, array($this, 'compareRecords'));
    }
public function sort () 
    {
        parent::sort();
        Helper::mapMethod($this->_records, 'sort');
        usort($this->_records, array($this, 'compareRecords'));
    }
public function sort ( ) { parent :: sort ( ) ; Helper :: mapMethod ( $ this -> _records , 'sort' ) ; usort ( $ this -> _records , array ( $ this , 'compareRecords' ) ) ; }
Sort fields and contained records.

The sort() is propagated down to all contained records. In addition the
nested records are sorted themselves using the implementing class'
compareNestedRecords() function.

@see Record::sort()
@see NestedRecord::compareNestedRecords()

@return void
Sort fields and contained records .