Skip to content

Commit 9789e25

Browse files
committed
/v1/namesの表示順を直す
1 parent 13e3860 commit 9789e25

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/bcdice_api/dicebots.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ def load_plugins
2020
end
2121
end
2222

23-
DICEBOTS = BCDice.all_game_systems.map { |klass| [klass::ID, klass] }.to_h
23+
DICEBOTS = BCDice.all_game_systems
24+
.sort_by { |klass| klass::SORT_KEY }
25+
.map { |klass| [klass::ID, klass] }
26+
.to_h
2427

2528
SYSTEMS = DICEBOTS.keys
2629
.sort

0 commit comments

Comments
 (0)