Go sort Package Sort()
Sort()
package main/* w w w . j a v a 2 s .com*/ import ( "fmt" "sort" ) func main() { fmt.Println("Interger Reverse Sort") num := []int{3,2,6,1,9,3} sort.Sort(sort.Reverse(sort.IntSlice(num))) fmt.Println(num) }