Adding ranked stats, also sorting to tables