Open ijobs opened 7 years ago
I modified the code in line 495 to solve the problem.
before:
this._sel.sort(function(a, b){return a.startOf('day').yearDay() - b.startOf('day').yearDay()}
after:
this._sel.sort(
function(a, b){
var reg = /-/;
if(reg.test(a._i)){
return parseInt(a._i.replace(/-/g, '')) - parseInt(b._i.replace(/-/g, ''));
}else{
a._i - b._i;
}
}
)
BUT... -- I find another problem that it worked so slowly when i picked a date.
THE CODE:
PS: please notice the parameter "month"