From: Jeff Cohen Date: 2005-12-24T09:56:30+09:00 Subject: Re: How to sort this hash? Simon, would you be willing to explain the syntax you used here: > jobs.sort{|a,b|a[1][sort_by] <=> b[1][sort_by]}.each do |k, attributes| I just can't quite understand the [sort_by] usage here...? Thanks (and apologies for the newbieness :-) Jeff -- Posted via http://www.ruby-forum.com/.