Skip to content

Commit 37715ed

Browse files
committed
feat(ui): Sort notifications by newest first (#417).
1 parent a391822 commit 37715ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/notifications_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class NotificationsController < ApplicationController
77
authorize_resource :notification, only: :read
88

99
def index
10-
@notifications = @user.notifications.group_by(&:read)
10+
@notifications = @user.notifications.order(updated_at: :desc).group_by(&:read)
1111
end
1212

1313
def read

0 commit comments

Comments
 (0)