D3.js bar chart with sortable option