lib/writers/core.js
function postCompareFunc(a, b) {
  var sortType = option.get('sorttype');
  var diff = new Date(a.meta.pubdate) - new Date(b.meta.pubdate);
  return sortType === 'asc' ? diff : -diff;
}
function postCompareFunc(a, b) {
  var sortType = option.get('sorttype');
  var diff = new Date(a.meta.pubdate) - new Date(b.meta.pubdate);
  return sortType === 'asc' ? diff : -diff;
}
function postCompareFunc ( a , b ) { var sortType = option . get ( 'sorttype' ) ; var diff = new Date ( a . meta . pubdate ) - new Date ( b . meta . pubdate ) ; return sortType === 'asc' ? diff : - diff ; }
compare two posts by pubdate
compare two posts by pubdate