jalapic
A sort button example taken from Scott Murray's excellent tutorials and tweaked a little.
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js