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?