Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
sort: add a simpler sort.Interface example #6335
Examples in package sort look a bit more complicated than a person new to it needs. I'm referring specifically to sort.Interface example and SortKeys, SortMultiKeys examples in the overview of the package. These are great pieces of code and demonstrate language flexibility but they look rather intimidating at first. I propose replacing sort.Interface example (while still keeping the original one with a different name) with something that clearly demonstrates usage of the interface, like: http://play.golang.org/p/WRY2lXlsiW Also, this would be a better example to come first in the package overview, since SortKeys example is too huge to introduce user to the package.