JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.jquery.com/jquery-2.2.3.min.js"></script>
<script src="https://getfirebug.com/firebug-lite-debug.js"></script>
<ul class="feedEkList"><li><div class="itemTitle"><a href="http://www.nasa.gov/press-release/nasa-works-to-improve-solar-electric-propulsion-for-deep-space-exploration" target="_blank">NASA Works to Improve Solar Electric Propulsion for Deep Space Exploration</a></div><div class="itemDate">04/19/2016</div><div class="itemContent">NASA has selected Aerojet Rocketdyne, Inc. of Redmond, Washington, to design and develop an advanced electric propulsion system that will significantly advance the nation's commercial space capabilities, and enable deep space exploration missions, including the robotic portion of NASA’s Asteroid Redirect Mission (ARM) and its Journey to Mars.</div></li><li><div class="itemTitle"><a href="http://www.nasa.gov/press-release/nasa-astronaut-to-call-columbia-university-students-from-international-space-station-0" target="_blank">NASA Astronaut to Call Columbia University Students from International Space Station</a></div><div class="itemDate">04/15/2016</div><div class="itemContent">Students from Columbia University in New York will have the opportunity to speak with a NASA astronaut currently living and working on the International Space Station at 1:10 p.m. EDT Thursday, April 21. The 20-minute, Earth-to-space call will air live on NASA Television and the agency’s website.</div></li><li><div class="itemTitle"><a href="http://www.nasa.gov/press-release/nasa-celebrates-earth-day-with-public-events-online-activities" target="_blank">NASA Celebrates Earth Day with Public Events, Online Activities</a></div><div class="itemDate">04/19/2016</div><div class="itemContent">This year, NASA will celebrate Earth Day, April 22, with a variety of live and online activities Thursday and Friday, April 21-22, to engage the public in the agency’s mission to better understand and protect our home planet.</div></li><li><div...
JavaScript
/*$('.itemDate').each(function(){
$(this).closest('li').data('date',$(this).text());
var date = new Date($(this).text())
$(this).text(date);
});*/
$date = $.makeArray($('li'));
$date.sort(function(a,b) {
a = $(a);
b = $(b);
//alert(a.html());
//alert(b.find('.itemDate').text());
var diff = new Date(a.find('.itemDate').text()).getTime() - new Date(b.find('.itemDate').text()).getTime();
alert(diff);
if(diff > 0)
return 1;
else if(diff<0)
return -1;
else
return 0;
});