Created
November 25, 2022 19:31
-
-
Save filiptronicek/cd968c1b520f1cd33f5c0727623d592f to your computer and use it in GitHub Desktop.
Sort by surname
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
namesDelimitedByNewline.split("\n").sort((a, b) => a.split(" ")[1].localeCompare(b.split(" ")[1])).join("\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment