Fix: returns the sorted proxy name
This commit is contained in:
parent
674f4be24d
commit
36f4ceafa1
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@ package adapters
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"sort"
|
||||
|
||||
C "github.com/Dreamacro/clash/constant"
|
||||
)
|
||||
|
@ -33,6 +34,7 @@ func (s *Selector) All() []string {
|
|||
for k := range s.proxies {
|
||||
all = append(all, k)
|
||||
}
|
||||
sort.Strings(all)
|
||||
return all
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue