Add js sorting.
Merge pull request #3 from paulmillr/patch-1

Add js sorting.