title: How do I reverse sort a slice of integer Go?
body: <p>I am trying to reverse-sort a slice of integers in Go.</p>
  
  <pre><code>  example := []int{1,25,3,5,4}
    sort.Ints(example) // this will give me a slice sorted from 1 to the highest number
  </code></pre>
  
  <p>How do I sort it so that it goes from highest to lowest? so [25 5 4 3 1]</p>
  
  <p>I have tried this </p>
  
  <pre><code>sort.Sort(sort.Reverse(sort.Ints(keys)))
  </code></pre>
  
  <p>Source: <a href="http://golang.org/pkg/sort/#Reverse">http://golang.org/pkg/sort/#Reverse</a></p>
  
  <p>However, I am getting the error below</p>
  
  <pre><code># command-line-arguments
  ./Roman_Numerals.go:31: sort.Ints(keys) used as value
  </code></pre>