SortBy Data Per-Date

PHOTO EMBED

Mon Dec 06 2021 04:34:00 GMT+0000 (UTC)

Saved by @GodFather #javascript

d.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
});
content_copyCOPY