//数值排序有大到小
//冒泡
public void BubbleSort(T[]MyArray)
{
for(int i=0;i=MyArray[j+1])
{
//交换
float MyF=MyArray[j];
MyArray[j]=MyArray[j+1];
  MyArray[j+1]=MyF;
}
}
} 
}
//选择排序
pubic void SetlectSort(T[]MyArray)
{

 for(int i=0;i0&&MyArray[insertIndex]>MyF)
{   //往已经拍好序的数组比较并插入
  MyArray[insertIndex+1]=MyArray[insertIndex];
    insertIndex--;
}
  MyArray[insertIndex]=MyF;

}
}