This Ruby code is not behaving as I would expect:
# create an array of hashes sort_me = [] sort_me.push({\"value\"=>1, \"name\"=>\"a\"}) sort_me.push({
You can use sort_me.sort_by!{ |k| k["value"]}. This should work.
sort_me.sort_by!{ |k| k["value"]}