How can I sort by date from string without using any of jQuery “Date” functions or methods?
Lets say that I have something like this:
<ul>
<li class="article"><a href="#" class="">15/02/1966</a></li>
<li class="article"><a href="#" class="">17/07/2003</a></li>
<li class="article"><a href="#" class="">11/12/2007</a></li>
<li class="article"><a href="#" class="">04/07/1951</a></li>
</ul>
How to sort them from lowest to biggest? Thanks!
You still could use alphabetical comparison, you only would need to reverse the dates into
YYYYMMDD: