Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

Commit 584c507

Browse files
committed
use localeCompare instead
1 parent b113d10 commit 584c507

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/landing-page/schedule/schedule.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ export class ScheduleComponent implements OnInit, OnChanges {
9494
if (a.date < b.date) return -1;
9595
if (a.date > b.date) return 1;
9696
// Dates are equal, sort by place
97-
return a.place === 'Room 1' ? -1 : 1;
97+
return a.place.localeCompare(b.place);
9898
})
9999

100100
day.sessions.Presentation.all.sort(function(a, b) {
101101
if (a.date < b.date) return -1;
102102
if (a.date > b.date) return 1;
103103
// Dates are equal, sort by place
104-
return a.place === 'Room 1' ? -1 : 1;
104+
return a.place.localeCompare(b.place);
105105
})
106106
})
107107

0 commit comments

Comments
 (0)