player: avoid allocation on sort
commit3a76adf065889787a300f5001126f3ca83731e27
authorEric Wong <e@80x24.org>
Sun, 24 Jan 2016 09:27:58 +0000 (24 09:27 +0000)
committerEric Wong <e@80x24.org>
Sun, 24 Jan 2016 09:27:58 +0000 (24 09:27 +0000)
tree1c7a2ed39c7d24cff140da2e23af7a720d26aae5
parenta9fcfdb4ac43ccd625df1667611fa143f155dedc
player: avoid allocation on sort

Hash#keys already allocates a new array, so we may sort it
in place without worrying about side effects and avoiding
an extra allocation.
lib/dtas/player.rb
lib/dtas/player/client_handler.rb