Repository navigation
Commit a2fd43f
committed
Correct remote sort order
According to the docs at https://golang.org/pkg/sort/#Interface
> // Less reports whether the element with
> // index i should sort before the element with index j.
> Less(i, j int) bool
A consistent comparison would then be i < j so, e.g., 1 is sorted before 2. In this case we need to ensure, `(origin = 1) < (upstream = 3)`
Fixes cli#2657.1 parent 230441e commit a2fd43f
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments