public static function setSortingField($type, $sort, $write = true)
    {
        Symphony::Configuration()->set(self::getColumnFromType($type) . '_index_sortby',  $sort, 'sorting');

        if ($write) {
            Symphony::Configuration()->write();
        }
    }
public static function setSortingField($type, $sort, $write = true)
    {
        Symphony::Configuration()->set(self::getColumnFromType($type) . '_index_sortby',  $sort, 'sorting');

        if ($write) {
            Symphony::Configuration()->write();
        }
    }
public static function setSortingField ( $ type , $ sort , $ write = true ) { Symphony :: Configuration ( ) -> set ( self :: getColumnFromType ( $ type ) . '_index_sortby' , $ sort , 'sorting' ) ; if ( $ write ) { Symphony :: Configuration ( ) -> write ( ) ; } }
Saves the new axis a given resource type will be sorted by.

@param integer $type
The resource type, either `RESOURCE_TYPE_EVENT` or `RESOURCE_TYPE_DS`
@param string $sort
The axis handle.
@param boolean $write
If false, the new settings won't be written on the configuration file.
Defaults to true.
Saves the new axis a given resource type will be sorted by .