imaplib.IMAP4_SSL.sort

IMAP4_SSL.sort(sort_criteria, charset, *search_criteria)

IMAP4rev1 extension SORT command.

(typ, [data]) = <instance>.sort(sort_criteria, charset, search_criteria, ...)