Give_Payments_Query::orderby PHP Méthode

orderby() public méthode

Order by
Since: 1.0
public orderby ( ) : void
Résultat void
    public function orderby()
    {
        switch ($this->args['orderby']) {
            case 'amount':
                $this->__set('orderby', 'meta_value_num');
                $this->__set('meta_key', '_give_payment_total');
                break;
            default:
                $this->__set('orderby', $this->args['orderby']);
                break;
        }
    }