usort my help here EG <?php $dates= array("date1", "date2", "date3", "date4"); sort($dates); foreach ($dates as $key => $val) { echo "Dates[" . $key . "] = " . $val . "\n"; } ?> PHP: somthing like this anyway
The code you posted had sort, that is what I said it won't work. You are correct, Usort will work, however, you still need to write a function to compare values, which is why I asked for the format of the date. PEace,