public bool GetScoreRank(float score, out int rank, out int outOf) { var scores = new List <Score>(m_oldScores); rank = 0; outOf = scores.Count; scores.Sort((a, b) => b.Int() - a.Int()); for (int i = 0; i < outOf; i++) { if (Floats.EqualsEpsilon(score, scores[i].Value)) { rank = i; return(true); } } return(false); }