IMAP4rev1 extension SORT command. (typ, [data]) = <instance>.sort(sort_criteria, charset, search_criteria, ...)
imaplib/IMAP4.sort
IMAP4.sort