1
0
mirror of https://github.com/golang/go synced 2024-11-18 17:24:40 -07:00
go/src/sort
Kenny Grant 8321be6339 sort: new example: Sorting slices with sort.SliceStable
ExampleSliceStable echoes the sort.Slice example, to demonstrate sorting
on two fields together preserving order between sorts.

Change-Id: I8afc20c0203991bfd57260431eda73913c165355
Reviewed-on: https://go-review.googlesource.com/37196
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-02-22 21:23:12 +00:00
..
example_interface_test.go
example_keys_test.go
example_multi_test.go
example_search_test.go sort: fix search descending order example 2016-09-17 00:14:19 +00:00
example_test.go sort: new example: Sorting slices with sort.SliceStable 2017-02-22 21:23:12 +00:00
example_wrapper_test.go
export_test.go
genzfunc.go sort: optimize average calculation in symMerge and doPivot. 2017-02-10 16:53:24 +00:00
search_test.go
search.go sort: optimize average calculation in binary search 2017-02-06 17:08:13 +00:00
sort_test.go sort: fix a slice benchmark not using the stable variant, add another 2016-10-05 14:43:23 +00:00
sort.go sort: optimize average calculation in symMerge and doPivot. 2017-02-10 16:53:24 +00:00
zfuncversion.go sort: optimize average calculation in symMerge and doPivot. 2017-02-10 16:53:24 +00:00