110,536
社区成员
发帖
与我相关
我的任务
分享
for(int i=1;i<=this.lVw .Items .Count ;i++)
{
if(this.lVw .Items [i].SubItems [1].Text .CompareTo (this.lVw .Items [i+1].SubItems [1].Text )>0)
{
this.lVw .Items [i].SubItems [1].Text =t;
t=this.lVw .Items [i+1].SubItems [1].Text ;
this.lVw .Items [i+1].SubItems [1].Text =this.lVw .Items [i].SubItems [1].Text;
}
}