score:3

Accepted answer

if you have an array to define the sorting order...

var desiredorder = ["start of 2013", "end of 2013", "2014", "2015", "2016"];

... just use indexof in the sort function:

var d_sequence = sequenceset.values().sort(function(a,b){
    return desiredorder.indexof(a) - desiredorder.indexof(b) 
});

here is the updated plunker: http://plnkr.co/edit/k09pl2vingv7ipmwbqh3?p=preview


Related Query

More Query from same tag