From 95bdeacd93a9a2f524b459b42bc787b28e698b67 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Sat, 28 Apr 2018 10:58:14 +0900 Subject: [PATCH] Order exchanges in the list --- BTCPayServer/Controllers/StoresController.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BTCPayServer/Controllers/StoresController.cs b/BTCPayServer/Controllers/StoresController.cs index c7f74e2ed..5b33e4c63 100644 --- a/BTCPayServer/Controllers/StoresController.cs +++ b/BTCPayServer/Controllers/StoresController.cs @@ -400,7 +400,10 @@ namespace BTCPayServer.Controllers private (String DisplayName, String Name)[] GetSupportedExchanges() { - return new[] { ("Coin Average", "coinaverage") }.Concat(_CoinAverage.AvailableExchanges).ToArray(); + return new[] { ("Coin Average", "coinaverage") } + .Concat(_CoinAverage.AvailableExchanges) + .OrderBy(s => s.Item1, StringComparer.OrdinalIgnoreCase) + .ToArray(); } private DerivationStrategy ParseDerivationStrategy(string derivationScheme, Script hint, BTCPayNetwork network)