Created
May 14, 2022 09:14
-
-
Save ikasoba/3c3339b2dd2ddaa452c271d783a6697d to your computer and use it in GitHub Desktop.
jsonのソート
This file contains hidden or 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
const sortJSON = o => Object.fromEntries(Object.entries(o).sort((a,b)=>a[0].charCodeAt(0) - b[0].charCodeAt(0))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment