from mbostock site--complete code for sortable barchart