I am working with an array that looks like this:
var v = ["07/27/2015", "07/28/2015", "08/29/2015", "08/29/2015", "07/27/2016"]
My goal is to dynamically sort this array into a new empty array nv
. Once sorted, nv
should look like this:
var nv = [["07/27/2015", "07/28/2015"], ["08/29/2015", "08/29/2015"], ["07/27/2016"]]
I'm wondering if it's possible to achieve this type of sorting?