src/View/Helper/HtmlHelper.php
public function getAssets($key)
    {
        $value = Hash::get($this->_assets, $key);
        if (is_string($value)) {
            return $value;
        }

        return Hash::sort((array) $value, '{n}.weight', 'asc');
    }
public function getAssets($key)
    {
        $value = Hash::get($this->_assets, $key);
        if (is_string($value)) {
            return $value;
        }

        return Hash::sort((array) $value, '{n}.weight', 'asc');
    }
public function getAssets ( $ key ) { $ value = Hash :: get ( $ this -> _assets , $ key ) ; if ( is_string ( $ value ) ) { return $ value ; } return Hash :: sort ( ( array ) $ value , '{n}.weight' , 'asc' ) ; }
Get sort assets included list.

@param   string $key
@return  array|null|string
Get sort assets included list .