sub _order_by {
my ($self, $arg) = @_;
+ return '' unless defined($arg);
+
my @chunks = $self->_order_by_chunks($arg);
my @sql;
if (!ref($arg)) {
return +{ -ident => $arg };
}
- if (!defined($arg)) {
- # Seriously?
- return
- }
if (ref($arg) eq 'HASH') {
my ($key, $val, @rest) = %$arg;