今天在修改程序的时候需要用到这个,就写下来了。以后再用就好办了

public void sort(ArrayList al)
{
   IComparer myComparer = new myReverserClass();
   al.Sort(0,al.count,myComparer);
}


public class myReverserClass : IComparer  {
      // Calls CaseInsensitiveComparer.Compare with the parameters reversed.
      int IComparer.Compare( Object x, Object y )  {
          return( (new CaseInsensitiveComparer()).Compare( y, x ) );
      }
   }