src/ngrest/base/Api.php
public function generateSortAttributes(Config $config)
    {
        $sortAttributes = [];
        foreach ($config->getPointerPlugins('list') as $plugin) {
            $sortAttributes = ArrayHelper::merge($plugin->getSortField(), $sortAttributes);
        }

        return $sortAttributes;
    }
public function generateSortAttributes(Config $config)
    {
        $sortAttributes = [];
        foreach ($config->getPointerPlugins('list') as $plugin) {
            $sortAttributes = ArrayHelper::merge($plugin->getSortField(), $sortAttributes);
        }

        return $sortAttributes;
    }
public function generateSortAttributes ( Config $ config ) { $ sortAttributes = [ ] ; foreach ( $ config -> getPointerPlugins ( 'list' ) as $ plugin ) { $ sortAttributes = ArrayHelper :: merge ( $ plugin -> getSortField ( ) , $ sortAttributes ) ; } return $ sortAttributes ; }
Generate an array of sortable attribute defintions from a ngrest config object.

@param Config $config The Ngrest Config object
@return array
@since 2.0.0
Generate an array of sortable attribute defintions from a ngrest config object .