Fixes bug with reaction input sorting