Example #1
0
        /// <summary>
        /// Sorts the index table using a sort criterion.
        /// </summary>
        /// <param name="crit">The sort criterion.</param>
        public void Sort(SortCriteria crit)
        {
            var myComparer = new MyComparer(codeElementWrapperArray, crit);

            list.Sort(myComparer);
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the MyComparer class.
 /// </summary>
 /// <param name="a">A CodeElementWrapperArray object.</param>
 /// <param name="s">A SortCriteria object.</param>
 public MyComparer(CodeElementWrapperArray a, SortCriteria s)
 {
     sortArray = a;
     criteria  = s;
 }