Contact: aviboots(AT)netvision.net.il
39,890 questions
51,817 answers
573 users
package main import ( "fmt" "sort" ) func main() { arr := []int{5, 6, 7, 2, 4, 3, 9} sort.Sort(sort.Reverse(sort.IntSlice(arr))) fmt.Println(arr) } /* run: [9 7 6 5 4 3 2] */