Skip to content

Refining the sorting in DocumentsPageV2.#333

Draft
mm-news wants to merge 1 commit into
CKStudentCouncil:mainfrom
mm-news:fix-document-sorting
Draft

Refining the sorting in DocumentsPageV2.#333
mm-news wants to merge 1 commit into
CKStudentCouncil:mainfrom
mm-news:fix-document-sorting

Conversation

@mm-news

@mm-news mm-news commented Apr 8, 2026

Copy link
Copy Markdown
Contributor
image

▲Current output, showing unintuitive sorting behavior.

This pull request updates the document query ordering logic in DocumentsPageV2.vue. The main change is the addition of a new ordering field to improve the sorting of documents.

Query ordering improvements:

  • Updated the orderBys array to include orderBy('publishedAt', 'desc') between orderBy('published', 'asc') and orderBy('createdAt', 'desc'), providing more precise sorting when displaying documents and fixing the issue where documents were not sorted by their displayed dates.

@mm-news mm-news marked this pull request as draft April 10, 2026 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant