lib/factory.js
function fixDay(days) {
		var s = [], i;
		for (i = 1; i < days.length; i++) {
			s.push(days[i]);
		}
		s.push(days[0]);
		return s;
	}
function fixDay(days) {
		var s = [], i;
		for (i = 1; i < days.length; i++) {
			s.push(days[i]);
		}
		s.push(days[0]);
		return s;
	}
function fixDay ( days ) { var s = [ ] , i ; for ( i = 1 ; i < days . length ; i ++ ) { s . push ( days [ i ] ) ; } s . push ( days [ 0 ] ) ; return s ; }
Push Sunday to the end
Push Sunday to the end