I have an array of arrays.  The first field of each contained array is a
date.  The second field of each contained array is the corresponding day
of the week.  I thought that it would be very easy to sort the outer
array on the dates like this:

myArray=[["2013/09/09","Mon"],["2013/09/14","Fri"],["2013/09/11","Wed"]]
myArray.sort {|x,y| x[0] <=> y[0]}
puts(myArray.inspect)

It's not working for me.  Can someone please tell me what I'm missing?
Thanks for any help.

     ... doug

-- 
Posted via http://www.ruby-forum.com/.