Adding table sort on stats