oops i forgot about numeric vs string comparisons
This commit is contained in:
parent
5a8dadc255
commit
8f18bb6533
2
blogalba
2
blogalba
|
@ -21,7 +21,7 @@ my $basedir=File::Spec->rel2abs(__FILE__);$basedir=~s/blogalba$//;
|
|||
my $cfg="$basedir/config";
|
||||
my $blog=YAML::LoadFile($cfg) or die "Couldn't load $cfg!";
|
||||
$blog->{url} .= '/' unless $blog->{url} =~ /\/$/;
|
||||
$blog->{links} = { sort { $b <=> $a } keys $blog->{links} };
|
||||
$blog->{links} = { sort { $b cmp $a } keys $blog->{links} };
|
||||
|
||||
my ($page,@posts,@pages,%defparams);
|
||||
my $nposts=0;my $npages=1;my $lastcache=0;
|
||||
|
|
Loading…
Reference in New Issue