var arrayNumber: [Int] = [2,4,216)"> 6,216)">7,216)"> 3,216)">8,216)"> 1]
//冒泡排序
func maopao(var array: [Int]) -> [Int] {
for var i = 0;i < array.count;i++ {
var j = i;j < array.count;j++ {
if array[j] > array[j + 1] {
var temp = array[j]
array[j] = array[j+1]
array[j+1] = temp
}
}
}
return array
}
let array2 = maopao([ 9,216)">5])
//待续。。。