From 8897a7e2d651a4bb117d0cbf4af4294e1f8e4cd0 Mon Sep 17 00:00:00 2001 From: Vraj Mohan Date: Fri, 20 Dec 2024 09:56:32 -0800 Subject: [PATCH] Restore sorting Clean this up in a separate refactoring --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 2eca557512a..44270a01e15 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -65,7 +65,7 @@ class User < ApplicationRecord attr_accessor :asserted_attributes, :email def confirmed_email_addresses - email_addresses.confirmed + email_addresses.confirmed.order('last_sign_in_at DESC NULLS LAST') end def fully_registered?