imaplib.IMAP4.sort

IMAP4.sort(sort_criteria, charset, *search_criteria)[source]

IMAP4rev1 extension SORT command.

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