func quickSort(content []int32) []int32 {
var returnApi = make([]int32,0)
if len(content) < 1 {
return returnApi
}
temp := content[0]
returnApi = append(returnApi,temp)
content = content[1:]
var smallArray []int32
var bigArray []int32
for _,value := range content {
if value < temp {
smallArray = append(smallArray,value)
} else if value > temp {
bigArray = append(bigArray,value)
} else if value == temp {
returnApi = append(returnApi,value)
}
}
return append(append(quickSort(smallArray),returnApi...),quickSort(bigArray)...)
}