File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/doc/net-imap-0.3.4/ri/Net/IMAP/sort-i.ri
U:RDoc::AnyMethod[iI" sort:ETI"Net::IMAP#sort;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"\Sends a {SORT command [RFC5256 ยง3]}[https://www.rfc-editor.org/rfc/rfc5256#section-3] ;TI"Mto search a mailbox for messages that match +search_keys+ and return an ;TI"Narray of message sequence numbers, sorted by +sort_keys+. +search_keys+ ;TI"-are interpreted the same as for #search.;To:RDoc::Markup::BlankLine o;
; [I"CRelated: #uid_sort, #search, #uid_search, #thread, #uid_thread;T@S:RDoc::Markup::Heading:
leveli
: textI"For example:;T@o:RDoc::Markup::Verbatim; [ I"0p imap.sort(["FROM"], ["ALL"], "US-ASCII")
;TI"%#=> [1, 2, 3, 5, 6, 7, 8, 4, 9]
;TI"=p imap.sort(["DATE"], ["SUBJECT", "hello"], "US-ASCII")
;TI"#=> [6, 7, 8, 1]
;T:@format0S;;
i
;I"Capabilities;T@o;
; [I"3The server's capabilities must include +SORT+ ;TI"4[RFC5256[https://tools.ietf.org/html/rfc5256]].;T:
@fileI"lib/net/imap.rb;T:0@omit_headings_from_table_of_contents_below000[ I"&(sort_keys, search_keys, charset);T@#FI" IMAP;TcRDoc::NormalClass00