diff --git a/lib/App/ClusterSSH/Base.pm b/lib/App/ClusterSSH/Base.pm index 8e2ce4c..f5613ee 100644 --- a/lib/App/ClusterSSH/Base.pm +++ b/lib/App/ClusterSSH/Base.pm @@ -306,9 +306,7 @@ sub sort { my $sort = sub { sort @_ }; - return $sort - unless ref( $self->config() ) eq "HASH" - && $self->config()->{'use_natural_sort'}; + return $sort unless $self->config()->{'use_natural_sort'}; # if the user has asked for natural sorting we need to include an extra # module