I'm working on a scheduling app with Angularjs and Firebase. For some reason when I write my function to set the default data the days are in order Mon, Tues, Wed, Thurs, Fri but my view shows the days as Fri, Mon, Thurs, Tues, Wed. Not sure why or how to fix, every thing else seems to be working fine.

app.js
angular.module('scheduleApp', ['firebase'])
create our main controller and get access to firebase
.controller('mainController', function($scope, $firebase) {
var ref = new Firebase("https://xxxxx.firebaseio.com/days");
var fb = $firebase(ref);
var syncObject = fb.$asObject();
syncObject.$bindTo($scope, 'days');
$scope.reset = function() {
fb.$set({
monday: {
name: 'Monday',
slots: {
100: {
time: '10:00am',
booked: false
},
110: {
time: '11:00am',
booked: false
},
120: {
time: '12:00pm',
booked: false
},
130: {
time: '1:00pm',
booked: false
},
140: {
time: '2:00pm',
booked: false
},
150: {
time: '3:00pm',
booked: false
},
160: {
time: '4:00pm',
booked: false
},
170: {
time: '5:00pm',
booked: false
},
180: {
time: '6:00pm',
booked: false
}
}
},
tuesday: {
name: 'Tuesday',
slots: {
100: {
time: '10:00am',
booked: false
},
110: {
time: '11:00am',
booked: false
},
120: {
time: '12:00pm',
booked: false
},
130: {
time: '1:00pm',
booked: false
},
140: {
time: '2:00pm',
booked: false
},
150: {
time: '3:00pm',
booked: false
},
160: {
time: '4:00pm',
booked: false
},
170: {
time: '5:00pm',
booked: false
},
180: {
time: '6:00pm',
booked: false
}
}
},
wednesday: {
name: 'Wednesday',
slots: {
100: {
time: '10:00am',
booked: false
},
110: {
time: '11:00am',
booked: false
},
120: {
time: '12:00pm',
booked: false
},
130: {
time: '1:00pm',
booked: false
},
140: {
time: '2:00pm',
booked: false
},
150: {
time: '3:00pm',
booked: false
},
160: {
time: '4:00pm',
booked: false
},
170: {
time: '5:00pm',
booked: false
},
180: {
time: '6:00pm',
booked: false
}
}
},
thursday: {
name: 'Thursday',
slots: {
100: {
time: '10:00am',
booked: false
},
110: {
time: '11:00am',
booked: false
},
120: {
time: '12:00pm',
booked: false
},
130: {
time: '1:00pm',
booked: false
},
140: {
time: '2:00pm',
booked: false
},
150: {
time: '3:00pm',
booked: false
},
160: {
time: '4:00pm',
booked: false
},
170: {
time: '5:00pm',
booked: false
},
180: {
time: '6:00pm',
booked: false
}
}
},
friday: {
name: 'Friday',
slots: {
100: {
time: '10:00am',
booked: false
},
110: {
time: '11:00am',
booked: false
},
120: {
time: '12:00pm',
booked: false
},
130: {
time: '1:00pm',
booked: false
},
140: {
time: '2:00pm',
booked: false
},
150: {
time: '3:00pm',
booked: false
},
160: {
time: '4:00pm',
booked: false
},
170: {
time: '5:00pm',
booked: false
},
180: {
time: '6:00pm',
booked: false
}
}
}
});
};
});
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Angular Scheduling</title>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootswatch/3.3.0/journal/bootstrap.m in.css">
<link rel="stylesheet" href="style.css">
<!-- JS -->
<!-- load Angular, Firebase, Firebase Angular Library, and custom app.js -->
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.0/angular.min.js"></script>
<script src="https://cdn.firebase.com/js/client/1.1.1/firebase.js"></script>
<script src="https://cdn.firebase.com/libs/angularfire/0.8.0/angularfire.min.js"></script>
<script src="app.js"></script>
</head>
<body>
<div class="container" ng-app="scheduleApp" ng-controller="mainController">
<div class="page-header text-center">
<h1>Schedule City</h1>
</div>
<div class="row times">
<div class="col-xs-4 text-center" ng-repeat="day in days">
<h2>{{ day.name }} </h2>
<div class="time-slot" ng-repeat="slot in day.slots">
<input type="checkbox" id="{{ day.name }}-{{ $index}}" ng- model="slot.booked" ng-disabled="slot.booked">
<label for="{{ day.name }}-{{ $index }}">{{ slot.time }}<br>
<span ng-if="slot.booked">Booked</span>
<span ng-if="!slot.booked">Available</span>
</label>
</div>
</div>
</div>
<p class="text-center">
<a href="#" class="btn btn-primary" ng-click="reset()">Reset</a>
</p>
</div>
</body>
</html>