From e9bbe16c7dba0e7926f96e155f3e03243ccdbc0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=B4=8D=E1=B4=8F=E1=B4=8F=C9=B4D4=CA=80=E1=B4=8B?= Date: Tue, 16 Aug 2022 15:51:28 +0800 Subject: [PATCH] feat: sort with browser name --- internal/browser/browser.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/browser/browser.go b/internal/browser/browser.go index 9dcd5c0..a3476e9 100644 --- a/internal/browser/browser.go +++ b/internal/browser/browser.go @@ -3,6 +3,7 @@ package browser import ( "os" "path/filepath" + "sort" "strings" "hack-browser-data/internal/browingdata" @@ -108,6 +109,7 @@ func ListBrowser() []string { var l []string l = append(l, typeutil.Keys(chromiumList)...) l = append(l, typeutil.Keys(firefoxList)...) + sort.Strings(l) return l }