Skip to content

Conversation

@Viral1127
Copy link

** ### What Changed**

  • Updated the logic for sorting repositories by number of issues or star count.
  • Changed the sorting function sortByGoodFirstIssues to prioritize sorting by the number of issues first and use stars as a tie-breaker.
  • Updated the sortByStars function to sort repositories only by star count.

### Why This Change?
These changes improve the logic for prioritizing repositories in lists of "good first issues," making it easier to discover useful projects.

### Changes Made

  • Improved logic in sortByGoodFirstIssues:
    • Sorts repositories by issue count, with star count as a tie-breaker.
  • Improved logic in sortByStars:
    • Sorts repositories only by star count in descending order.

### How to Test

  1. Check the sorting behavior with sample repository data.
  2. Validate that the changes align with expected sorting behavior.

@nahomtechet
Copy link

actually it good

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.

2 participants