Hi there,
Here's what I'd do:
date.txt contains the following:
BEFORE natsort(), $a_lines_assoc looks like this:
And AFTER:
As you see, it's sorted...... WAIT. I just found a flaw. Because you have the year in the end, you can't simply natsort() it and get what you want... Try this instead:
And when echoing the contents, use date('n/j/Y', $your_date_value) like this:
Then you'll get this:
More or less, here's what you wanted. Sorry about the first half of the post being useless but after typing them up I just couldn't delete it. =)
Good luck.