Fixed outyet state on stats page and added sorting on stats page.