R
Robert Marley
Say for instance I have an array of dates in string format
dates = ['06/12/08', '11/11/06', '01/01/07']
I want to sort this array in ascending order without using Ruby's
built-in date class. Is there a way of doing this?
Just started Ruby and I'm pretty much a newbie. I tried the sort!, but
it sorts only by day.
Thanks
Rob
dates = ['06/12/08', '11/11/06', '01/01/07']
I want to sort this array in ascending order without using Ruby's
built-in date class. Is there a way of doing this?
Just started Ruby and I'm pretty much a newbie. I tried the sort!, but
it sorts only by day.
Thanks
Rob