now the rankings save after refresh and sort ranking correctly