public function getSorting()
    {
        if (!$this->sorting) {
            $sorting = ObjectUtility::valueForKeyPathOfObject('meta.sorting', $this);
            if (!$sorting) {
                $sorting = self::DEFAULT_SORTING;
            }
            $this->sorting = $sorting;
        }

        return $this->sorting;
    }
public function getSorting()
    {
        if (!$this->sorting) {
            $sorting = ObjectUtility::valueForKeyPathOfObject('meta.sorting', $this);
            if (!$sorting) {
                $sorting = self::DEFAULT_SORTING;
            }
            $this->sorting = $sorting;
        }

        return $this->sorting;
    }
public function getSorting ( ) { if ( ! $ this -> sorting ) { $ sorting = ObjectUtility :: valueForKeyPathOfObject ( 'meta.sorting' , $ this ) ; if ( ! $ sorting ) { $ sorting = self :: DEFAULT_SORTING ; } $ this -> sorting = $ sorting ; } return $ this -> sorting ; }
Returns the sorting position in a menu

@return int
Returns the sorting position in a menu