Added term/stats sort option for histogram stacked terms