Skip to content

feat: sort activity lists newest-first#717

Open
anonymoususer72041 wants to merge 2 commits intoopencats:masterfrom
anonymoususer72041:feat/activity-lists-newest-first
Open

feat: sort activity lists newest-first#717
anonymoususer72041 wants to merge 2 commits intoopencats:masterfrom
anonymoususer72041:feat/activity-lists-newest-first

Conversation

@anonymoususer72041
Copy link
Contributor

Summary

This PR changes activity list ordering to show the newest entries first across the application where activity lists are rendered via the shared activity retrieval logic.

It updates the core activity queries to sort by the existing created-date sort field in descending order and adds a deterministic tie-breaker by activity_id (descending) to ensure stable ordering when timestamps are identical.

Additionally, the Activities module DataGrid ordering is hardened by appending an activityID tie-breaker when sorting by dateCreatedSort.

Motivation

Seeing the most recent activity first is the expected UX for activity feeds and improves day-to-day usability when reviewing recent interactions.

The deterministic activity_id tie-breaker avoids unstable ordering caused by equal timestamps, making list rendering predictable and preventing confusing “random” reordering between page loads or environments.

@anonymoususer72041 anonymoususer72041 changed the title feat(activity): sort activity lists newest-first feat: sort activity lists newest-first Feb 17, 2026
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