Refactored compare.js to use a makeshift 'spaceship' operator, simplified sendAction in component.js

i think we haven't dropped these deprecation paths yet