Why can’t I sort email by the header?

Unfortunately, the ability to sort by "From," "Subject," or "Date" is no longer supported if you use the New/Old style of inbox.

If you want to sort your messages this way, switch to the Unified Inbox style.