public function setSortingField($sort, $write = true)
    {
        Symphony::Configuration()->set('section_' . $this->get('handle') . '_sortby', $sort, 'sorting');

        if ($write) {
            Symphony::Configuration()->write();
        }
    }
public function setSortingField($sort, $write = true)
    {
        Symphony::Configuration()->set('section_' . $this->get('handle') . '_sortby', $sort, 'sorting');

        if ($write) {
            Symphony::Configuration()->write();
        }
    }
public function setSortingField ( $ sort , $ write = true ) { Symphony :: Configuration ( ) -> set ( 'section_' . $ this -> get ( 'handle' ) . '_sortby' , $ sort , 'sorting' ) ; if ( $ write ) { Symphony :: Configuration ( ) -> write ( ) ; } }
Saves the new field this Section will be sorted by.

@since Symphony 2.3
@param string $sort
The field ID or the string 'id'.
@param boolean $write
If false, the new settings won't be written on the configuration file.
Defaults to true.
Saves the new field this Section will be sorted by .