Could you show us some code ?

In the past I have done that this way for a row chart :

var topRowChart = dc.rowChart("#chart-top-dest");

.dimension(destination, "destination")
.ordering(function(t){return t.calls;})
.label(function(d){ return d.key + " : " + d.value + " calls" ;})

The important bits are :

.ordering(function(t){return t.calls;})

You have to pass a function to ordering() that returns the dimension/group that will be used for sorting.

Surprisingly removing cap() cancels the sorting.

Related Query

More Query from same tag