Skip to content

Commit a787758

Browse files
author
Colby Gallup
authored
Renamed sortEvents to compareEvents
1 parent 3bf8a5e commit a787758

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ $('.day-second').click(showSecondDayEvents);
149149

150150
// Dynamic schedule code
151151

152-
function sortEvents(a, b) {
152+
function compareEvents(a, b) {
153153
// We can sort by start/end here because the ISO 8061
154154
// timestamps given by the server are lexicographically
155155
// sortable.
@@ -206,7 +206,7 @@ function handleEventData(events) {
206206
}
207207

208208
// need to sort events by start/end times instead of IDs
209-
events.sort(sortEvents);
209+
events.sort(compareEvents);
210210

211211
events.forEach(event => {
212212
let startDate = new Date(event.start); // convert ISO 8601 -> Date object

0 commit comments

Comments
 (0)