Go’s |
|
|
|
|
|
|
|
Sorting functions are generic, and work for any ordered built-in type. For a list of ordered types, see cmp.Ordered. |
|
An example of sorting |
|
We can also use the |
|
|
Next example: Sorting by Functions.