From f142dbf7ca38c802672e76de69f7604c48c1e05a Mon Sep 17 00:00:00 2001 From: sillyslux Date: Thu, 29 Jul 2021 03:40:12 +0200 Subject: [PATCH] Sorts commands alphabetically (#186) --- app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.rb b/app.rb index 2e27c854..cb8bb87f 100644 --- a/app.rb +++ b/app.rb @@ -37,7 +37,7 @@ def documentation_path end def commands - $commands ||= Reference.new(JSON.parse(File.read(documentation_path + "/commands.json"))) + $commands ||= Reference.new(JSON.parse(File.read(documentation_path + "/commands.json")).sort().to_h) end def new_redis_connection