src/wcmf/application/controller/SortController.php
protected function getSortkeyValue($object, $valueName) {
    $value = $object->getValue($valueName);
    if ($value == null) {
      $value = $object->getOID()->getFirstId();
    }
    return $value;
  }
protected function getSortkeyValue($object, $valueName) {
    $value = $object->getValue($valueName);
    if ($value == null) {
      $value = $object->getOID()->getFirstId();
    }
    return $value;
  }
protected function getSortkeyValue ( $ object , $ valueName ) { $ value = $ object -> getValue ( $ valueName ) ; if ( $ value == null ) { $ value = $ object -> getOID ( ) -> getFirstId ( ) ; } return $ value ; }
Get the sortkey value of an object. Defaults to the object's id, if
the value is null
@param $object The object
@param $valueName The name of the sortkey attribute
@return String
Get the sortkey value of an object . Defaults to the object s id if the value is null