Server returns this:
<div id="urls">
04.10.2011-some-article.html <br />
10.09.2011-other-article.html <br />
14.07.2010-some-text.html <br />
18.09.2011-article.html <br />
25.10.2011-text.html <br />
</div>
But I’d like to sort this articles by the actual creation date.
Is there any way to do it with jQuery (or immediately with php?)
please give me suggestions
I appreciate your interest and help!!
First-off, this is pretty bad data to be getting from the server. Looks like it might change without notice, etc. If it’s from an API, you should seek a better response format such as JSON.
Nevertheless, here is some PHP that would sort your articles by date.