Assuming the $time part is a Unix timestamp,
and all stamps are from after Sun Sep 9 01:46:39 2001,
you could simply do: @event_queue = sort @event_queue.
Then you can use a Guttman-Rosler Transform (GRT)
or a Schwarzian Transform (ST) in a straightforward way.
A search on this site should reveal many examples.