Categories: None [Edit]
ruby19_stable_sort
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.
Total
Ranking: 98,851 of 183,127
Downloads: 7,380
Daily
Ranking: 74,510 of 183,106
Downloads: 0
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|
Depends on
Rank | Downloads | Name |
---|
Owners
# | Gravatar | Handle |
---|---|---|
1 | jmoses |