File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ export const FilterDialog = ({
27
27
initialExams : string [ ] | undefined ;
28
28
initialSlots : string [ ] | undefined ;
29
29
initialYears : string [ ] | undefined ;
30
- initialCampuses : string [ ] | undefined
31
- initialSemesters : string [ ] | undefined
30
+ initialCampuses : string [ ] | undefined ;
31
+ initialSemesters : string [ ] | undefined ;
32
32
33
33
onReset : ( ) => void ;
34
34
onApplyFilters : ( exams : string [ ] , slots : string [ ] , years : string [ ] ) => void ;
@@ -55,15 +55,15 @@ export const FilterDialog = ({
55
55
setSelectedSlots ( initialSlots ?? [ ] ) ;
56
56
setSelectedYears ( initialYears ?? [ ] ) ;
57
57
setSelectedCampuses ( initialCampuses ?? [ ] ) ;
58
- setSelectedSemesters ( initialSemesters ?? [ ] )
58
+ setSelectedSemesters ( initialSemesters ?? [ ] ) ;
59
59
} , [ initialExams , initialSlots , initialYears ] ) ;
60
60
61
61
const exams = filterOptions . uniqueExams . map ( ( exam ) => ( {
62
62
label : exam ,
63
63
value : exam ,
64
64
} ) ) ;
65
- const slots = filterOptions . uniqueSlots . map ( ( slot ) => ( {
66
- label : slot ,
65
+ const slots = filterOptions . uniqueSlots . sort ( ( a , b ) => a . localeCompare ( b ) ) . map ( ( slot ) => ( {
66
+ label : slot ,
67
67
value : slot ,
68
68
} ) ) ;
69
69
const years = filterOptions . uniqueYears . map ( ( year ) => ( {
You can’t perform that action at this time.
0 commit comments