Last active
February 18, 2020 16:34
-
-
Save BrunoGiubilei/a032f6a0d57f248385eb0e301666bb1b to your computer and use it in GitHub Desktop.
Ordenar array de objetos alfabeticamente
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
.sort(function(a, b) { | |
return a.categoria.toString().localeCompare(b.categoria.toString()); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment