Give_Payments_Query::orderby PHP Method

orderby() public method

Order by
Since: 1.0
public orderby ( ) : void
return 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;
        }
    }