RubyGems Navigation menu

ruby19_stable_sort 0.0.1

The Ruby 1.8 Enumerable.sort_by method was stable, in that items with matching conditions were preserved in the same order. That's not the case in Ruby 1.9. Some of my code depended on this behavior, and I'm sure I'm not the only one. So here's a stable_sort_by method that preserves the orders of items with matching sort_by values.

Versions:

  1. 0.0.1 - April 24, 2011 (4.5 KB)

Authors:

  • Jon Moses

Owners:

94b2f5945f33eb56d626c7dd0bb7e552

Total downloads 1,116

For this version 1,116

Required Ruby Version: None

Licenses:

N/A

Gemfile:
gem 'ruby19_stable_sort', '~> 0.0.1' = Copy to clipboard Copied!

install:
gem install ruby19_stable_sort = Copy to clipboard Copied!

Links: