Fix rss ordering

This commit is contained in:
Citlali del Rey 2023-11-09 14:33:22 -08:00
parent 13bb1817ab
commit f997babc3c
Signed by: nullobsi
GPG Key ID: 933A1F44222C2634
1 changed files with 1 additions and 1 deletions

View File

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