• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

less/H29-Mar-2020-8565

.gitignoreH A D29-Mar-2020266 2519

LICENSEH A D29-Mar-20201.4 KiB2922

README.mdH A D29-Mar-2020764 2216

bubble.goH A D29-Mar-2020500 2619

bubble_test.goH A D29-Mar-2020651 4030

go.modH A D29-Mar-202089 63

go.sumH A D29-Mar-2020575 76

sort.goH A D29-Mar-20205.6 KiB236179

sort_test.goH A D29-Mar-20205.8 KiB259207

README.md

1# sort [![GoSearch](http://go-search.org/badge?id=github.com%2Fgolangplus%2Fsort)](http://go-search.org/view?id=github.com%2Fgolangplus%2Fsort)
2Plus to the standard `sort` package.
3
4[Godoc](http://godoc.org/github.com/golangplus/sort)
5
6## Featured
7```go
8// InterfaceStruct is a struct implementing sort.Interface given closures
9type InterfaceStruct struct {...}
10
11// SortF calls sort.Sort by closures. Since Interface.Len always returns a constant,
12// it is an int parameter rather than a closure here.
13func SortF(Len int, Less func(i, j int) bool, Swap func(i, j int)) {...}
14
15// The bubble sort algorithm. It is especially useful for almost sorted list.
16// Bubble sort is a stable sort algorithm.
17func Bubble(data sort.Interface) {...}
18```
19
20## LICENSE
21BSD license
22