很显然,这种方法不是好方法,我想到另外一种方法,用ArrayList的Sort方法,先建立一个实现IComparer的类AreaComparer,再将ArrayCollection复制到ArrayList中,调用al.Sort(new AreaComparer())进行排序,代码如下: