diff options
author | Robert Verst <robert@verst.eu> | 2021-05-31 18:15:02 +0200 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-06-05 10:56:46 +1000 |
commit | 94b52af661dd8b61c60b5801106025e4a81be7b6 (patch) | |
tree | 25a28652de915b4a1cf6c8f5ca5c120424dfd168 /pkg/commands/loading_tags.go | |
parent | 472288c81b3ad48dc86e5a8538c11c7a18e6a604 (diff) |
Remove config, make default sort order `descending`
Diffstat (limited to 'pkg/commands/loading_tags.go')
-rw-r--r-- | pkg/commands/loading_tags.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/commands/loading_tags.go b/pkg/commands/loading_tags.go index 21925f184..8bd66c936 100644 --- a/pkg/commands/loading_tags.go +++ b/pkg/commands/loading_tags.go @@ -46,8 +46,8 @@ func (c *GitCommand) GetTags() ([]*models.Tag, error) { // now lets sort our tags by name numerically re := regexp.MustCompile(semverRegex) - sortAsc := !c.Config.GetUserConfig().Gui.SortTagsDescending - // the reason this is complicated is because we're both sorting alphabetically + sortAsc := c.Config.GetUserConfig().Gui.SortTagsAscending + // the reason this is complicated is because we're both sorting alphabetically // and when we're dealing with semver strings sort.Slice(tags, func(i, j int) bool { var a, b string |