Created
April 29, 2017 02:01
-
-
Save hrajchert/912a1f4f0ed38820fbcadbc011c57fa2 to your computer and use it in GitHub Desktop.
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
function ordenarPorNombre(a) { | |
var resultado = a.slice(0); | |
resultado.sort(function(x, y) { | |
return x.nombre.localCompare(y.nombre); | |
}); | |
return resultado; | |
} | |
// const resultado = ordenarPorNombre() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment