Last active
January 24, 2020 11:09
-
-
Save zGrav/5e3da51c8b4949e8b6aea55e1615554d to your computer and use it in GitHub Desktop.
compare
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
teamData[teamId].sort(function(a, b) { | |
if (a.kills! < b.kills!) { | |
return -1; | |
} | |
if (a.kills! > b.kills!) { | |
return 1; | |
} | |
return 0; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment