private List <User> OrderByScore() { var users = _rankService.GetAllUserScore(); for (int i = 0; i < users.Length; i++) { _userRank.Add(users[i]); } _userRank.Sort((x, y) => y.Score.CompareTo(x.Score)); return(_userRank); }