This was an idea, without knowing author's intentions (does he want to preserve the initial @dates or no, etc.) and without searching for the fastest combination of possibilities.
Of course your exemple is better, it runs in ~65 microseconds on my system (compared to ~105 microseconds used by mine and ~20000 microseconds used by author's code). Anyway, TIMTOWTDI :)
In reply to Re^4: sort based on date
by Anonymous Monk
in thread sort based on date
by suhailck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |