Dictionaries are not really great for ordering (i.e. they don't have a order). Rewrite the group function to return a 2-dimensional array (a array of stream groups starting in the same month and year).
Steps for Testing
1 Course
Log in
Navigate to the course page
Streams should now also be grouped correctly if multiple years occur. (e.g. 2022 December, 2023 January)
Motivation and Context
Description
Dictionaries are not really great for ordering (i.e. they don't have a order). Rewrite the
group
function to return a 2-dimensional array (a array of stream groups starting in the same month and year).Steps for Testing