You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Repositories with identical star counts render in non-deterministic, flickering order #613
A logic bug exists in the primary <RepositoryGrid /> sorting algorithm. The grid is designed to sort a user's repositories by total stars (descending). However, if a user has multiple repositories with the exact same star count (e.g., three repos with 0 stars, or two repos with 5 stars), the Array.prototype.sort() algorithm fails to implement a deterministic secondary sorting parameter. This causes the order of those specific repositories to flicker and change randomly every time the page is refreshed or a new batch is paginated.
Proposed Solution
Audit the client-side (or server-side) sorting utility function applied to the repository array.
Implement a robust, multi-tier sorting heuristic.
The primary sort parameter must remain stargazerCount (descending).
Inject a strict secondary sort parameter: if repoA.stargazerCount === repoB.stargazerCount, fallback to sorting by updatedAt (most recently pushed to first).
This mathematically guarantees a 100% deterministic, stable rendering order across all sessions, completely eliminating the UI flicker and ensuring the user's most recently active projects are always prioritized in tie-breaker scenarios.
Activity
github-actions commentedon Jul 26, 2026
Hey @pradeep0153, thanks for opening this issue! 👋
Before anyone starts working on this, please comment below explaining your approach — what you plan to do and how you plan to do it.
A few things to keep in mind:
Once a maintainer reviews your approach and assigns the issue to you, you're good to go. Looking forward to it! 🚀
mspandey commentedon Jul 29, 2026
pls assign it to me
github-actions commentedon Aug 29, 2026
This issue has seen no activity for 30 days. It has been marked as stale and will be closed in 7 days if no further activity occurs.