my @ret = (
$self->_format_keyword('ORDER BY'),
$self->_render($dq->{by}),
- (defined $dq->{reverse}
- ? $self->_format_keyword($dq->{reverse} ? 'DESC' : 'ASC')
+ ($dq->{reverse}
+ ? $self->_format_keyword('DESC')
: ())
);
my $from;
push @ret, (
',',
$self->_render($dq->{by}),
- (exists $dq->{reverse}
- ? $self->_format_keyword($dq->{reverse} ? 'DESC' : 'ASC')
+ ($dq->{reverse}
+ ? $self->_format_keyword('DESC')
: ())
);
}