roundcubemail/program/lib/Roundcube/rcube_imap.php
protected function set_sort_order($sort_field, $sort_order)
    {
        if ($sort_field != null) {
            $this->sort_field = asciiwords($sort_field);
        }
        if ($sort_order != null) {
            $this->sort_order = strtoupper($sort_order) == 'DESC' ? 'DESC' : 'ASC';
        }
    }
protected function set_sort_order($sort_field, $sort_order)
    {
        if ($sort_field != null) {
            $this->sort_field = asciiwords($sort_field);
        }
        if ($sort_order != null) {
            $this->sort_order = strtoupper($sort_order) == 'DESC' ? 'DESC' : 'ASC';
        }
    }
protected function set_sort_order ( $ sort_field , $ sort_order ) { if ( $ sort_field != null ) { $ this -> sort_field = asciiwords ( $ sort_field ) ; } if ( $ sort_order != null ) { $ this -> sort_order = strtoupper ( $ sort_order ) == 'DESC' ? 'DESC' : 'ASC' ; } }
Validate the given input and save to local properties

@param string $sort_field Sort column
@param string $sort_order Sort order
Validate the given input and save to local properties