public function sort ()
    {
        usort($this->_fields,
              function (Field $fieldA, Field $fieldB) {
              return strcmp($fieldA->getShorthand(), $fieldB->getShorthand());
          });
    }
public function sort ()
    {
        usort($this->_fields,
              function (Field $fieldA, Field $fieldB) {
              return strcmp($fieldA->getShorthand(), $fieldB->getShorthand());
          });
    }
public function sort ( ) { usort ( $ this -> _fields , function ( Field $ fieldA , Field $ fieldB ) { return strcmp ( $ fieldA -> getShorthand ( ) , $ fieldB -> getShorthand ( ) ) ; } ) ; }
Sort the fields of the record.

Fields are sorted by their shorthand.

@see \HAB\Pica\Record\Field::getShorthand()

@return void
Sort the fields of the record .