diff --git a/service-monitor/model.go b/service-monitor/model.go index 8965663..6cefee7 100644 --- a/service-monitor/model.go +++ b/service-monitor/model.go @@ -3,6 +3,7 @@ package main import ( "fmt" "sort" + "strings" "github.com/coreos/go-systemd/sdjournal" ) @@ -23,7 +24,7 @@ func serviceModel(specialServices, activeOnly bool) ([]ServiceItem, error) { } sort.Slice(ts, func(i, j int) bool { - return ts[i].Name < ts[j].Name + return strings.ToLower(ts[i].Name) < strings.ToLower(ts[j].Name) }) model := []ServiceItem{}