--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Keep dictionary sorted by value. - !ruby/struct:SM::Flow::VERB body: " d = Dictionary.new.order_by_value\n d["z"] = 1\n d["y"] = 2\n d["x"] = 3\n d #=> {"x"=>3,"y"=>2,"z"=>2}\n" - !ruby/struct:SM::Flow::P body: "This is equivalent to:" - !ruby/struct:SM::Flow::VERB body: " Dictionary.new.order_by { |key,value| value }\n" full_name: Dictionary#order_by_value is_singleton: false name: order_by_value params: () visibility: public