From 36f4ceafa167c63519ca8e68b5e6d35e3c261a3e Mon Sep 17 00:00:00 2001 From: Dreamacro <305009791@qq.com> Date: Tue, 7 Aug 2018 14:45:24 +0800 Subject: [PATCH] Fix: returns the sorted proxy name --- adapters/remote/selector.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/adapters/remote/selector.go b/adapters/remote/selector.go index 42214e0e..92326c1c 100644 --- a/adapters/remote/selector.go +++ b/adapters/remote/selector.go @@ -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 }