a sorting practice using d3