Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The order of favorite sessions on the screen is incorrect #1039

Closed
takahirom opened this issue Sep 11, 2024 · 1 comment · Fixed by #1041
Closed

The order of favorite sessions on the screen is incorrect #1039

takahirom opened this issue Sep 11, 2024 · 1 comment · Fixed by #1041

Comments

@takahirom
Copy link
Member

The order of favorite sessions on the screen is incorrect. It seems that if we have favorite sessions spanning multiple days, the order is wrong.
image
https://x.com/CookieySun/status/1833817419242217848

@takahirom
Copy link
Member Author

The code is here 👀

.filtered(
Filters(
filterFavorite = true,
days = selectedDayFilters.toList(),
),
)
.timetableItems.groupBy {
TimeSlot(it.startsTimeString, it.endsTimeString)
}.mapValues { entry ->
entry.value.sortedWith(
compareBy({ it.day?.name.orEmpty() }, { it.startsTimeString }),
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant