Exiting Settings causes selected mail to change

When I was trying to sort out my lack of backups in a different thread, I was in my “Unread” search folder which is set to sort by date ascending. When I closed Settings, the program moved to the last message (most recent). Not seen that happen before on exiting Settings.