public function removeOrder($fieldToRemove)
    {
        $order = array();
        if (count($order) > 0) {
            foreach ($this->fields as $field => $direction) {
                if (strtolower($fieldToRemove) === strtolower($field)) {
                    continue;
                }
                $order[$field] = $direction;
            }
        }
        $this->fields = $order;
    }
public function removeOrder($fieldToRemove)
    {
        $order = array();
        if (count($order) > 0) {
            foreach ($this->fields as $field => $direction) {
                if (strtolower($fieldToRemove) === strtolower($field)) {
                    continue;
                }
                $order[$field] = $direction;
            }
        }
        $this->fields = $order;
    }
public function removeOrder ( $ fieldToRemove ) { $ order = array ( ) ; if ( count ( $ order ) > 0 ) { foreach ( $ this -> fields as $ field => $ direction ) { if ( strtolower ( $ fieldToRemove ) === strtolower ( $ field ) ) { continue ; } $ order [ $ field ] = $ direction ; } } $ this -> fields = $ order ; }
Remove existing order

@param string $fieldToRemove
Remove existing order