Fix rss ordering
This commit is contained in:
parent
13bb1817ab
commit
f997babc3c
|
@ -161,7 +161,7 @@ sub announcement_feed ($self) {
|
|||
}
|
||||
|
||||
my $announcements = $acache->get('announcements');
|
||||
my @chosen = sort (keys %$announcements);
|
||||
my @chosen = sort { $b cmp $a } (keys %$announcements);
|
||||
|
||||
if (scalar(@chosen) > 5) {
|
||||
@chosen = @chosen[0..4];
|
||||
|
|
Loading…
Reference in New Issue