Don't check config is a HASH

At some point `$self->config()` started returning a `bless`ed object so
checking it was a `HASH` began to fail, preventing someone using natural
sort. AFAIK the config option always has to behave as a hash so it should be
safe to avoid this test.
This commit is contained in:
Andrew Stevenson 2023-07-31 16:40:10 +02:00
parent b302a7724f
commit 4ea91d4e68

View file

@ -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