--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Keep dictionary sorted by key.
- !ruby/struct:SM::Flow::VERB 
  body: "  d = Dictionary.new.order_by_key\n  d[&quot;z&quot;] = 1\n  d[&quot;y&quot;] = 2\n  d[&quot;x&quot;] = 3\n  d  #=&gt; {&quot;x&quot;=&gt;3,&quot;y&quot;=&gt;2,&quot;z&quot;=&gt;2}\n"
- !ruby/struct:SM::Flow::P 
  body: "This is equivalent to:"
- !ruby/struct:SM::Flow::VERB 
  body: "  Dictionary.new.order_by { |key,value| key }\n"
- !ruby/struct:SM::Flow::P 
  body: The initializer Dictionary#alpha also provides this.
full_name: Dictionary#order_by_key
is_singleton: false
name: order_by_key
params: ()
visibility: public
