Fix ordering in "emails" view