Sorting int32

Run Settings
LanguageGo
Language Version
Run Command
package main import ( "fmt" "sort" ) func main() { array := []int32{1, 4, 2, 9, 3, 8, 7, 6, 10, 5} fmt.Println(array) sort.Slice(array, func(i, j int) bool { return array[i] < array[j] }) fmt.Println(array) }
Editor Settings
Theme
Key bindings
Full width
Lines