Created
May 5, 2016 14:11
-
-
Save Pmmlabs/727b9df4d67f981e02fc38d5aeadea51 to your computer and use it in GitHub Desktop.
html table sort
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
var a = [].slice.call($0.children).sort(function(a,b){return a.innerHTML>b.innerHTML}); | |
for (i in a) $0.appendChild(a[i]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment