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

Incorrect Sorting Order for Dialog Groups #1848

Open
seanes opened this issue Feb 26, 2025 · 0 comments
Open

Incorrect Sorting Order for Dialog Groups #1848

seanes opened this issue Feb 26, 2025 · 0 comments
Assignees
Labels
dev developer task

Comments

@seanes
Copy link
Contributor

seanes commented Feb 26, 2025

Description of the bug

Dialogs are sorted by updated_at in descending order (DESC). If they belong to the same month or year, they are grouped and sorted internally in descending order by updated_at, which works as expected.

However, the year groups themselves (e.g., 2023, 2024, 2025) are currently sorted in ascending order (ASC). This results in older years appearing first, requiring unnecessary scrolling to reach the most recent messages.

Steps To Reproduce

  1. Log in to the test environment with 08847698382.
  2. Select the inbox for Etterpåklok Kjær Tiger AS.
  3. Observe that while messages within each group are correctly sorted in DESC order, the year groups themselves are sorted in ASC order.

Expected behavoir

Year groups should be sorted in descending order (DESC) so that the newest messages (e.g., 2025) appear first, followed by 2024, 2023, etc.

Additional Information

No response

@seanes seanes added the dev developer task label Feb 26, 2025
@seanes seanes moved this from New issues to Ready in Dialogporten / Arbeidsflate Feb 26, 2025
@mbacherycz mbacherycz self-assigned this Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev developer task
Projects
Status: Ready
Development

No branches or pull requests

2 participants