Bar/pie sorting algorithms.  New tooltip format