updated packet hist plot to sorted