Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Issue 2657733002: Add sort function helper library. (Closed)

Created:
3 years, 11 months ago by iannucci
Modified:
3 years, 11 months ago
Reviewers:
dnj, Vadim Sh., nodir
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, maruel+w_chromium.org, tandrii+luci-go_chromium.org
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

Add sort function helper library. Inspired by comments on https://github.com/golang/go/issues/16721. This will be particularly handy when we get to use a version of go (1.8) which has `sort.Slice`. But in the mean time, it's at least clearer and quicker than hand-rolling Less methods (and potentially safer too!). R=dnj@chromium.org, nodir@chromium.org, vadimsh@chromium.org BUG= Review-Url: https://codereview.chromium.org/2657733002 Committed: https://github.com/luci/luci-go/commit/80c0aea21b33925fd87eb92ee06e99395c33a5a1

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix test, comment #

Patch Set 3 : copyright #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -0 lines) Patch
A common/data/sortby/sortby.go View 1 1 chunk +34 lines, -0 lines 0 comments Download
A common/data/sortby/sortby_test.go View 1 2 1 chunk +78 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
iannucci
3 years, 11 months ago (2017-01-25 03:37:53 UTC) #1
Vadim Sh.
lgtm with nits https://codereview.chromium.org/2657733002/diff/1/common/data/sortby/sortby.go File common/data/sortby/sortby.go (right): https://codereview.chromium.org/2657733002/diff/1/common/data/sortby/sortby.go#newcode12 common/data/sortby/sortby.go:12: // elements. Multiple LessFns can be ...
3 years, 11 months ago (2017-01-25 03:43:34 UTC) #2
iannucci
https://codereview.chromium.org/2657733002/diff/1/common/data/sortby/sortby.go File common/data/sortby/sortby.go (right): https://codereview.chromium.org/2657733002/diff/1/common/data/sortby/sortby.go#newcode12 common/data/sortby/sortby.go:12: // elements. Multiple LessFns can be composed with This ...
3 years, 11 months ago (2017-01-25 03:47:24 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2657733002/40001
3 years, 11 months ago (2017-01-25 03:48:12 UTC) #6
commit-bot: I haz the power
3 years, 11 months ago (2017-01-25 03:55:31 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://github.com/luci/luci-go/commit/80c0aea21b33925fd87eb92ee06e99395c33a5a1

Powered by Google App Engine
This is Rietveld 408576698