Skip to content

Commit

Permalink
Order admin events by archived and id desc
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Dec 11, 2024
1 parent 92caab4 commit ff214e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/events_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def unarchive
end

def index
@events = Event.order("archived").all
@events = Event.order(:archived, id: :desc)
end

end

0 comments on commit ff214e5

Please sign in to comment.