We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bf8a5e commit a787758Copy full SHA for a787758
index.js
@@ -149,7 +149,7 @@ $('.day-second').click(showSecondDayEvents);
149
150
// Dynamic schedule code
151
152
-function sortEvents(a, b) {
+function compareEvents(a, b) {
153
// We can sort by start/end here because the ISO 8061
154
// timestamps given by the server are lexicographically
155
// sortable.
@@ -206,7 +206,7 @@ function handleEventData(events) {
206
}
207
208
// need to sort events by start/end times instead of IDs
209
- events.sort(sortEvents);
+ events.sort(compareEvents);
210
211
events.forEach(event => {
212
let startDate = new Date(event.start); // convert ISO 8601 -> Date object
0 commit comments