Is it possible to sort an array of dates with a specific format in ascending order? The format includes the year and week number, which you can see below:
Excerpt of the unsorted array:
["2014 - 03", "2013 - 01", "2013 - 02", "2014 - 03"]
Desired result of an sorted array:
["2013 - 01", "2013 - 02", "2014 - 03"]
I would like to use a compare function to implement the sorting algorithm in javascript and D3.js.