feat: sort with browser name

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ 2022-08-16 15:51:28 +08:00
parent 286307004e
commit e9bbe16c7d
1 changed files with 2 additions and 0 deletions

View File

@ -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
}