This method is used to set a sort order for the groups.
The diagram on the left uses the default sort function which is d3.ascending and the diagram on the right uses a custom sort function.
d3.ascending