Help sorting iCal by Start Time



I have managed to get a published iCalendar of off a webdav server and
can render the information that I want to display. Everything is fine
except that the events are sorted by creation time not start time, and I
obviously want to sort by start time.

I can’t get my head around how to sort the event data by the start date.
In PHP I’d have used multi-dimensional arrays, but I believe that is not
the Ruby way.

Thanks in advance,