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; });
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter