private void AddWord(WordResult wordResult) { //add new word into sorted list var cmp = new ObbComparison(); int i = 0; while (i < mSortedWords.Count && cmp.Compare(mSortedWords[i], wordResult) < 0) { i++; } if (i < mSortedWords.Count) { mSortedWords.Insert(i, wordResult); } else { mSortedWords.Add(wordResult); } }