我需要对以下内容进行排序,任何想法表示赞赏:
a=[
["****************1************","20120210 08:04:05,404 DEBUG MQReceiver - Receive message "<FIXML>","\n"],
["****************3************","20120210 08:04:00,404 DEBUG MQReceiver - Sent message "<FIXML>","\n"],
["****************2************","20120210 08:03:05,404 DEBUG MQReceiver - Allocated message "<FIXML>","\n"],
]
如何按时间或按步骤 1、2、3 对该数组进行排序 - 通常 a.sort{|x,y| x<=>y} 在这里不起作用