File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 1+ # These are supported funding model platforms
2+
3+ custom : https://www.paypal.me/rgmz
4+ github : yaph
Original file line number Diff line number Diff line change @@ -30,13 +30,15 @@ async function run(): Promise<void> {
3030 }
3131 } )
3232
33- // Sort by prCount and then by starCount
33+ // Sort descending by prCount, then by starCount and finally ascending by repo owner with name
3434 let sortedRepos = new Map ( [ ...repos . entries ( ) ] . sort ( ( a , b ) => {
35- const diff = b [ 1 ] . prCount - a [ 1 ] . prCount
36- if ( diff !== 0 ) {
37- return diff
38- }
39- return b [ 1 ] . starCount - a [ 1 ] . starCount
35+ let diff : any = b [ 1 ] . prCount - a [ 1 ] . prCount
36+ if ( diff !== 0 ) return diff
37+
38+ diff = b [ 1 ] . starCount - a [ 1 ] . starCount
39+ if ( diff !== 0 ) return diff
40+
41+ return a [ 0 ] . starCount - b [ 0 ] . starCount
4042 } ) )
4143
4244 // Create Markdown table
You can’t perform that action at this time.
0 commit comments