value.sort(function (a, b) { var dateA = new Date(a.invoice_date.slice(0, -17)), dateB = new Date(b.invoice_date.slice(0, -17)); return dateA - dateB; });
value.sort(function (a, b) { var dateA = new Date(a.invoice_date.slice(0, -17)), dateB = new Date(b.invoice_date.slice(0, -17)); return dateA - dateB; });