I have the following snippet for li
tag:
tl = '<li>';
tl+= '<time class="cbp_tmtime" datetime="2013-04-10 18:30"><span>04/10/13</span> <span>18:30</span></time>';
tl+= '<div class="cbp_tmlabel">';
tl+= '<p>TL Content Goes here</p>';
tl+= '</div>';
tl+= '</li>';
As you can see there's a time
tag. Is it possible to use jQuery to sort <ul>
based w.r.t datetime
attribute?