Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ruby / usr / share / ri / 2.2.0 / system / Enumerable / sort-i.ri
Size: Mime:
U:RDoc::AnyMethod[iI"	sort:ETI"Enumerable#sort;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"BReturns an array containing the items in <i>enum</i> sorted, ;TI"Heither according to their own <code><=></code> method, or by using ;TI"Jthe results of the supplied block. The block should return -1, 0, or ;TI"I+1 depending on the comparison between <i>a</i> and <i>b</i>. As of ;TI"GRuby 1.8, the method <code>Enumerable#sort_by</code> implements a ;TI"Dbuilt-in Schwartzian Transform, useful when key computation or ;TI"comparison is expensive.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"A%w(rhea kea flea).sort          #=> ["flea", "kea", "rhea"]
;TI"I(1..10).sort { |a, b| b <=> a }  #=> [10, 9, 8, 7, 6, 5, 4, 3, 2, 1];T:@format0:
@fileI"enum.c;T:0@omit_headings_from_table_of_contents_below0I"Menum.sort                  -> array
enum.sort { |a, b| block } -> array
;T0[I"();T@FI"Enumerable;TcRDoc::NormalModule00