Yes... but I'm not entirely sure why the above code isn't working. I wlll investigate.
/EDIT: Oh, duh. This is an obvious one...
Code:function DateCmp($a, $b)
{
return ($a[1] > $b[1]) ? -1 : 1;
}
Printable View
Yes... but I'm not entirely sure why the above code isn't working. I wlll investigate.
/EDIT: Oh, duh. This is an obvious one...
Code:function DateCmp($a, $b)
{
return ($a[1] > $b[1]) ? -1 : 1;
}
Still doesn't make a difference, I know part of the problem. I remove the contents of the function DateCmp(), and it still shows the same old thing (files in the wrong order)... So DateCmp() isn't making a difference at all, no matter what you do with it. There must be a problem somewhere else in the code... Perhaps I shouldn't use a usort method...
Try using "DateCmp" instead of DateCmp as the argument to the usort function.
Still no difference...
Sounds painful, but you could rewrite it a bit. It's not too hard to write a loop that would reverse it.
Then again your stuff is pretty complex now and that would just confuse it.
Carry on.
Brainstorming... not getting too far.
...And learning from what you guys are figuring out. thanks.