Skip to content

Commit 348ee96

Browse files
committed
Minor tweaks
1 parent ef35d95 commit 348ee96

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import computeGroupedRequirementFulfillmentReports from './requirements/requirem
66
import RequirementFulfillmentGraph from './requirements/requirement-graph';
77
import { createAppOnboardingData } from './user-data-converter';
88
import {
9-
getCurrentSeason,
109
sortedSemesters,
10+
getCurrentSeason,
1111
checkNotNull,
1212
getCurrentYear,
1313
allocateAllSubjectColor,

src/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const sortedSemesters = (
1919
semesters: readonly FirestoreSemester[],
2020
orderByNewest = true
2121
): readonly FirestoreSemester[] =>
22-
[...semesters].sort((a, b) => {
22+
semesters.slice().sort((a, b) => {
2323
// sort in increasing order iff orderByNewest is false, increasing otherwise
2424
const order = orderByNewest ? -1 : 1;
2525
const byYear = a.year - b.year;

0 commit comments

Comments
 (0)