JSFiddle - React, Tailwind, and code Playground
JavaScript
// This data tests if falsy status elements are sorted
// lower than non-falsy elements. The falsy element has the
// highest date, but it should not be the returned result.
var apps = [
{ status: 'PASS',
date_created: 'Thu Sep 02 2015 17:24:45 GMT-0700 (PDT)'
},
{ status: '',
date_created: 'Thu Sep 03 2015 17:24:45 GMT-0700 (PDT)',
},
{ status: 'PASS',
date_created: 'Thu Sep 01 2015 17:24:45 GMT-0700 (PDT)',
}
];
var x = _.chain(apps).sortBy(function(x) {
var date = new Date(x.date_created).getTime();
return x.status ? date : date - 8640000000000001;
}).last().value();
console.log( x );