Fix message list sort with THREADS=REFS and sort column other than "None" or "Sent date"