Created
June 11, 2015 16:40
-
-
Save andreabalducci/05f173215db5299b29a7 to your computer and use it in GitHub Desktop.
Typescript intro
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
// http://channel9.msdn.com/events/Build/2015/3-644 | |
function sortByName(a){ | |
var result = a.slice(0); | |
result.sort(function(x,y){ | |
return x.name.localCompare(y.name); | |
}) | |
} | |
sortByName(5); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment