fix error for sort announcements

This commit is contained in:
chiu 2024-10-17 01:19:39 +00:00
parent 763a49028d
commit 4043dfed5c
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ module AnnouncementsHelper
announcements = announcements.sort_by { |announcement| announcements = announcements.sort_by { |announcement|
tmp1 = announcement["postdate"].blank? tmp1 = announcement["postdate"].blank?
[ [
-a['sort_number'].to_i, -announcement['sort_number'].to_i,
tmp1 ? 0 : 1, tmp1 ? nil : announcement["postdate"].to_time tmp1 ? 0 : 1, tmp1 ? nil : announcement["postdate"].to_time
] ]
}.reverse }.reverse