Hi,

I've a pretty simple problem, i am getting data in the form of two arrays and merging those two arrays and getting a result like:

Array
(
[0] => Array
(
[0] => 246
[group_id] => 246
[1] => 2009-02-15 18:14:31
[walldate] => 2009-02-15 18:14:31
)

[1] => Array
(
[0] => 193
[group_id] => 193
[1] => 2009-02-15 18:07:59
[walldate] => 2009-02-16 18:07:59
)

[2] => Array
(
[0] => 318
[group_id] => 318
[1] => 2009-02-13 16:57:55
[join_date] => 2009-02-13 16:57:55
)


[3] => Array
(
[0] => 246
[group_id] => 246
[1] => 2009-02-17 18:37:10
[join_date] => 2009-02-17 18:37:10
)

)

Now, what i want to do is to sort that array corresponding to date so that i have group_id with highest walldate or join_date at top, i am not somehow finding a way to do this.

Please suggest me a way to achieve this.
Thanks in advance,
kul.