Skip to content

Commit

Permalink
sort tools ignoreing case
Browse files Browse the repository at this point in the history
  • Loading branch information
bakito committed Mar 9, 2023
1 parent 81afc6c commit c086883
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package types

import (
"sort"
"strings"
)

type Toolbox struct {
Expand All @@ -25,7 +26,7 @@ func (t *Toolbox) GetTools() []*Tool {
}

sort.Slice(tools, func(i, j int) bool {
return tools[i].Name < tools[j].Name
return strings.ToLower(tools[i].Name) < strings.ToLower(tools[j].Name)
})

return tools
Expand Down

0 comments on commit c086883

Please sign in to comment.